

def make_node(self, x):
    x = as_sparse_variable(x)
    assert (self.format in ['csr', 'csc'])
    return gof.Apply(self, [x], [tensor.tensor(broadcastable=(False,), dtype=x.dtype)])

dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/sparse/basic.py Diag.make_node/VarMisuse@21/25 `x`->`self`