

def perform(self, node, inputs, outputs):
    (x, y, p) = inputs
    (out,) = outputs
    if _is_sparse(x):
        raise TypeError(x)
    if _is_sparse(y):
        raise TypeError(y)
    if (not _is_sparse(p)):
        raise TypeError(p)
    out[0] = p.__class__(p.multiply(numpy.dot(x, y.T)))

dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/sparse/basic.py SamplingDot.perform/original