

def __eq__(self, other):
    ((a, b), (x, y)) = (self, other)
    return ((a == x) and (b.dtype == y.dtype) and (type(b) == type(y)) and (b.shape == y.shape) and (abs((b - y)).sum() < (1e-06 * b.nnz)))

dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/sparse/basic.py SparseConstantSignature.__eq__/original