'Compute derivative w.r.t input given derivative w.r.t output.'

def ComputeDeriv(self):

    self.deriv.apply_tanh_deriv(self.state)
    if self.hyperparams.dropout:
        self.deriv.mult(self.mask)
