

def make_node(self, x, y):
    (x, y) = map(as_sparse_variable, [x, y])
    assert (x.format in ['csr', 'csc'])
    assert (y.format in ['csr', 'csc'])
    out_dtype = scalar.upcast(x.type.dtype, y.type.dtype)
    return gof.Apply(self, [x, y], [SparseType(dtype=out_dtype, format=x.type.format)()])

dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/sparse/basic.py AddSS.make_node/original