Rounds the elements of a tensor to the nearest integer.
Arguments
- operand
(
tensorish)
Tensorish value of data type floating-point.- method
(
character(1))
Rounding method."nearest_even"(default) rounds to the nearest even integer on a tie,"afz"rounds away from zero on a tie.
Value
tensorish
Has the same dtype and shape as operand.
It is ambiguous if the input is ambiguous.
StableHLO
Lowers to stablehlo::hlo_round_nearest_even() or
stablehlo::hlo_round_nearest_afz() depending on the method parameter.