mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-02 14:34:54 +08:00
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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user