// call to their gradient method does not return a
// list (which it *should*). We need to explicitly make it
// into a list below.
return [self._grad_op(*(inputs + gradients))]
class rTReflectedGradientOp(tt.Op):
def __init__(self, base_op):
After Change
outputs[2][0] = ddsigr
def grad(self, inputs, gradients):
results = self(*inputs)
grad = self._grad_op(*(inputs + results + [gradients[0]]))
return grad
class rTReflectedGradientOp(tt.Op):
def __init__(self, base_op):