tvm_tirx.ir.prim.div

Contents

tvm_tirx.ir.prim.div#

tvm_tirx.ir.prim.div(a, b, loc=UNKNOWN_LOC)#

Compute a / b as in C/C++ semantics.

Parameters:
  • a (Expr) – The left hand operand, known to be non-negative.

  • b (Expr) – The right hand operand, known to be non-negative.

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

Returns:

res (Expr) – The result expression.

Note

When operands are integers, returns truncdiv(a, b, loc).