tvm_tirx.ir.prim.trunc

Contents

tvm_tirx.ir.prim.trunc#

tvm_tirx.ir.prim.trunc(x, loc=UNKNOWN_LOC)#

Get truncated value of the input.

The truncated value of the scalar x is the nearest integer i which is closer to zero than x is.

Parameters:
  • x (Expr) – Input argument.

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

Returns:

y (Expr) – The result.