Skip to content

Commit a7e8b5f

Browse files
Naman-ntcweiyangfb
authored andcommitted
Update _torch_docs.py (pytorch#7700)
Added better example
1 parent e694678 commit a7e8b5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

torch/_torch_docs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3498,9 +3498,9 @@ def parse_kwargs(desc):
34983498
tensor([ 4., 3., 4.])
34993499
35003500
3501-
>>> torch.randint(3, 10, (2,2), dtype=torch.long)
3502-
tensor([[ 8, 3],
3503-
[ 3, 9]])
3501+
>>> torch.randint(10, (2,2))
3502+
tensor([[ 0., 2.],
3503+
[ 5., 5.]])
35043504
35053505
35063506
>>> torch.randint(3, 10, (2,2))

0 commit comments

Comments
 (0)