tvm_tirx.tirx.script.cast

Contents

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), as cast(value, dtype=dtype) or as cast(value, ty=ty). Supply exactly one non-None type. The source location is keyword-only.

Parameters:

loc (Location)