

def grad(self, inputs, gout):
    (x, y) = inputs
    (gz,) = gout
    assert (_is_sparse_variable(x) and _is_dense_variable(y))
    assert _is_sparse_variable(gz)
    return ((y * gz), dense_from_sparse((x * gz)))

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