def ComputeDeriv(self):
    self.deriv.apply_tanh_deriv(self.state)
    if self.hyperparams.dropout:
      self.deriv.mult(self.mask)
Compute derivative w.r.t input given derivative w.r.t output.
dataset/ETHPy150Open nitishsrivastava/deepnet/deepnet/tanh_layer.py/TanhLayer.ComputeDeriv