torch.round
torch.round(input, *, decimals=0, out=None) -> Tensor
Rounds elements of "input" to the nearest integer.
For integer inputs, follows the array-api convention of returning a
   copy of the input tensor.
Note:
 This function implements the "round half to even" to break ties
 when a number is equidistant from two integers (e.g. *round(2.5)*
 is 2).When the :attr:`decimals` argument is specified the
 algorithm used is similar to NumPy's *around*. This algorithm is
 fast but inexact and it can easily overflow for low precision
 dtypes. Eg. *round(tensor([10000], dtype=torch.float16),
 decimals=3)* is *inf*.

See also:
 "torch.ceil()", which rounds up. "torch.floor()", which rounds
 down. "torch.trunc()", which rounds towards zero.

Parameters:
      * input (Tensor) -- the input tensor.
  * **decimals** (*int*) -- Number of decimal places to round to
    (default: 0). If decimals is negative, it specifies the number
