tvm_tirx.tirx.reinterpret

Contents

tvm_tirx.tirx.reinterpret#

tvm_tirx.tirx.reinterpret(value, *, ty, loc=UNKNOWN_LOC)#

Reinterpret a value as an exact primitive or pointer type.

Parameters:
  • ty (str or tvm_tirx.ir.Type) – The data type.

  • value (Expr) – The input value.

  • loc (Location, optional) – The location of this operator in the source code.

Returns:

value (tvm.Expr) – The reinterpret cast value of ty.

Return type:

Expr