def sp_zeros_like(x):

    # TODO: don't restrict to CSM formats
    _, _, indptr, shape = csm_properties(x)
    return CSM(format=x.format)(data=numpy.array([], dtype=x.type.dtype),
                                indices=numpy.array([], dtype='int32'),
                                indptr=tensor.zeros_like(indptr),
                                shape=shape)
Lag based filter
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/sparse/basic.py/sp_zeros_like--crossover with--dataset/ETHPy150Open c00w/bitHopper/bitHopper/LaggingLogic/__init__.py/filter_lag