Skip to content

Commit

Permalink
Update torch/_tensor_docs.py
Browse files Browse the repository at this point in the history
Co-authored-by: mikaylagawarecki <35276741+mikaylagawarecki@users.noreply.github.com>
  • Loading branch information
isdanni and mikaylagawarecki committed Jul 25, 2023
1 parent 0f9cb03 commit a310b2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions torch/_tensor_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4732,8 +4732,7 @@ def callable(a, b) -> number
r"""
shape() -> torch.Size
Returns the size of the :attr:`self` tensor. Tensor :attr:`shape` is the alias for :attr:`size`.
It was added for consistency with NumPy.
Returns the size of the :attr:`self` tensor. Alias for :attr:`size`.
See also :meth:`Tensor.size`.
Expand Down

0 comments on commit a310b2b

Please sign in to comment.