Function tvm::prim::abs

Function tvm::prim::abs#

Function Documentation#

PrimExpr tvm::prim::abs(PrimExpr x, Location loc = UnknownLoc())#

Calculate absolute value of x.

Parameters:
  • x – The input data

  • loc – The location of this operation in the source.

Returns:

The absolute value of input data x