Skip to content

Commit 4eb448a

Browse files
Shuailongapaszke
authored andcommitted
Fix simple typo
Dimension a bit wrong
1 parent 065c598 commit 4eb448a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch/_torch_docs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@
343343
344344
Example::
345345
346-
>>> vec1 = torch.arange(1, 3)
347-
>>> vec2 = torch.arange(1, 2)
346+
>>> vec1 = torch.arange(1, 4)
347+
>>> vec2 = torch.arange(1, 3)
348348
>>> M = torch.zeros(3, 2)
349349
>>> torch.addr(M, vec1, vec2)
350350
1 2

0 commit comments

Comments
 (0)