Function tvm::neg

Function tvm::neg#

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.