Add torch.arange and deprecate torch.range

This commit is contained in:
Adam Paszke
2017-04-02 13:58:46 -07:00
committed by Soumith Chintala
parent 03f1cab801
commit 91c4ba7980
16 changed files with 214 additions and 47 deletions

View File

@ -1590,7 +1590,7 @@ Args:
Example::
>>> x = torch.range(1, 7)
>>> x = torch.arange(1, 8)
>>> x
1