

def grad(self, inputs, gout):
    (x, y) = inputs
    (gz,) = gout
    assert (_is_sparse_variable(x) and (not _is_sparse_variable(y)))
    assert _is_sparse_variable(gz)
    return (gz, sp_sum(gz, axis=0, sparse_grad=True))

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