tvm_tirx.tirx.script.max

Contents

tvm_tirx.tirx.script.max#

tvm_tirx.tirx.script.max(a, b, loc=UNKNOWN_LOC)#

Compute the maximum value of two expressions.

Parameters:
  • a (Expr) – The left hand operand

  • b (Expr) – The right hand operand

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

Returns:

res (Expr) – The result expression.

Return type:

Expr