Skip to content

Commit b3a6669

Browse files
committed
Fix typo in doc.
Signed-off-by: HE, Tao <sighingnow@gmail.com>
1 parent 25d2126 commit b3a6669

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

torch/_tensor_docs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def add_docstr_all(method, docstr):
167167
>>> a.all()
168168
False
169169
170-
.. function:: any(dim, keepdim=False, out=None) -> Tensor
170+
.. function:: all(dim, keepdim=False, out=None) -> Tensor
171171
172172
Returns True if all elements in each row of the tensor in the given
173173
dimension :attr:`dim` are non-zero, False otherwise.
@@ -204,7 +204,7 @@ def add_docstr_all(method, docstr):
204204

205205
add_docstr_all('any',
206206
r"""
207-
.. function:: x.any() -> bool
207+
.. function:: any() -> bool
208208
209209
Returns True if any elements in the tensor are non-zero, False otherwise.
210210
@@ -219,7 +219,7 @@ def add_docstr_all(method, docstr):
219219
>>> a.any()
220220
True
221221
222-
.. function:: x.any(dim, keepdim=False, out=None) -> Tensor
222+
.. function:: any(dim, keepdim=False, out=None) -> Tensor
223223
224224
Returns True if any elements in each row of the tensor in the given
225225
dimension :attr:`dim` are non-zero, False otherwise.

0 commit comments

Comments
 (0)