Script.round

Contents

Script.round

Script.round(x, *, out=None)

Round each element to the nearest integer (round-to-nearest-even).

Uses banker’s rounding: if the fractional part is exactly 0.5, rounds to the nearest even integer.

Parameters:
Returns:

ret – Tensor with the same shape and dtype as x.

Return type:

RegisterTensor

Notes

  • Thread group: Can be executed by any sized thread group.