mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Add torch.arange and deprecate torch.range
This commit is contained in:
committed by
Soumith Chintala
parent
03f1cab801
commit
91c4ba7980
@ -1590,7 +1590,7 @@ Args:
|
||||
|
||||
Example::
|
||||
|
||||
>>> x = torch.range(1, 7)
|
||||
>>> x = torch.arange(1, 8)
|
||||
>>> x
|
||||
|
||||
1
|
||||
|
Reference in New Issue
Block a user