tvm_tirx.tirx.script.cast#
- tvm_tirx.tirx.script.cast(value, dtype=None, *, ty=None, loc=UNKNOWN_LOC)#
Cast an expression to the requested data type.
The result type may be passed positionally as
cast(value, dtype), ascast(value, dtype=dtype)or ascast(value, ty=ty). Supply exactly one non-None type. The source location is keyword-only.- Parameters:
loc (Location)