mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
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:
committed by
PyTorch MergeBot
parent
89e32f52c7
commit
0975174652
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user