Added a note to torch.round doc to indicate the return type (#97227)

Added a note to torch.round doc to indicate the return type of output tensor

Fixes #89056

Pull Request resolved: https://github.com/pytorch/pytorch/pull/97227
Approved by: https://github.com/albanD
This commit is contained in:
JenDL
2023-06-29 20:02:59 +00:00
committed by PyTorch MergeBot
parent 4ab140902b
commit a6b9a61a6a

View File

@ -9586,6 +9586,7 @@ Rounds elements of :attr:`input` to the nearest integer.
For integer inputs, follows the array-api convention of returning a
copy of the input tensor.
The return type of output is same as that of input's dtype.
.. note::
This function implements the "round half to even" to