Function tvm::prim::abs#
Defined in File op.h
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