def cast(variable, dtype):
    return Cast(dtype)(variable)

#
# Conversion
#
Cast sparse variable to the desired dtype.
dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/sparse/basic.py/cast