Function tvm::neg#
Defined in File op.h
Function Documentation#
-
PrimExpr tvm::neg(PrimExpr a, Location loc = UnknownLoc())#
negation.
Note
this function does eager constant folding for index types(int32, int64) when possible.
- Parameters:
a – input.
loc – The location of this operation in the source.
- Returns:
The result expression.