

def grad(self, inputs, gout):
    (gz,) = gout
    is_continuous = [(i.dtype in continuous_dtypes) for i in inputs]
    derivative = {
        True: gz,
        False: None,
    }
    return [derivative[b] for b in is_continuous]

dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/sparse/basic.py AddSSData.grad/original