Fix doc about type promotion of lshift and rshift (#77613)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/77613
Approved by: https://github.com/ngimel
This commit is contained in:
Xiang Gao
2022-05-17 00:28:48 +00:00
committed by PyTorch MergeBot
parent 89e32f52c7
commit 0975174652

View File

@@ -1377,8 +1377,9 @@ add_docstr(torch.bitwise_left_shift,
bitwise_left_shift(input, other, *, out=None) -> Tensor
Computes the left arithmetic shift of :attr:`input` by :attr:`other` bits.
The result will have the same dtype as :attr:`input`. The input tensor must
be of integral types.
The input tensor must be of integral type. This operator supports
:ref:`broadcasting to a common shape <broadcasting-semantics>` and
:ref:`type promotion <type-promotion-doc>`.
The operation applied is:
@@ -1403,8 +1404,9 @@ add_docstr(torch.bitwise_right_shift,
bitwise_right_shift(input, other, *, out=None) -> Tensor
Computes the right arithmetic shift of :attr:`input` by :attr:`other` bits.
The result will have the same dtype as :attr:`input`. The input tensor must
be of integral types.
The input tensor must be of integral type. This operator supports
:ref:`broadcasting to a common shape <broadcasting-semantics>` and
:ref:`type promotion <type-promotion-doc>`.
The operation applied is: