def _float_ones_like(x):

    rval = tensor.ones_like(x)

    if rval.type.dtype.find('float') != -1:
        return rval

    return rval.astype(theano.config.floatX)
initialize the tophat advection problem
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/gradient.py/_float_ones_like--crossover with--dataset/ETHPy150Open zingale/pyro2/advection/problems/tophat.py/init_data