Function tvm::prim::nearbyint#
Defined in File op.h
Function Documentation#
-
PrimExpr tvm::prim::nearbyint(PrimExpr x, Location loc = UnknownLoc())#
Round x to the nearest integer, ties to even.
Equivalent to round(). Both use IEEE 754 default rounding mode (ties-to-even).
- Parameters:
x – The input expression.
loc – The location of this operation in the source.
- Returns:
The result expression.