summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorElias Ellison <eellison@fb.com>2018-11-08 11:38:55 -0800
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2018-11-08 11:40:52 -0800
commita92ff57a4d08e8aebf8b188b6b7e5a64f534e26d (patch)
treebe9a8d831e624089c8c3ef074bbc5a1f74a7d415 /docs
parent869ef71343bca259af0cba685d600369f77abb77 (diff)
downloadpytorch-a92ff57a4d08e8aebf8b188b6b7e5a64f534e26d.tar.gz
pytorch-a92ff57a4d08e8aebf8b188b6b7e5a64f534e26d.tar.bz2
pytorch-a92ff57a4d08e8aebf8b188b6b7e5a64f534e26d.zip
update range doc (#13730)
Summary: Update range documentation to show that we don't support start or increment parameters Pull Request resolved: https://github.com/pytorch/pytorch/pull/13730 Differential Revision: D12982016 Pulled By: eellison fbshipit-source-id: cc1462fc1af547ae80c6d3b87999b7528bade8af
Diffstat (limited to 'docs')
-rw-r--r--docs/source/jit.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/source/jit.rst b/docs/source/jit.rst
index f7a4411956..2baa500dc2 100644
--- a/docs/source/jit.rst
+++ b/docs/source/jit.rst
@@ -375,12 +375,13 @@ For loops with ``range``
::
x = 0
- for i in range(0, 10):
+ for i in range(10):
x *= i
.. note::
Script currently does not support iterating over generic iterable
- objects like lists or tensors. This will be added in a future version.
+ objects like lists or tensors. Script currently does not support start or
+ increment parameters to range. These will be added in a future version.
For loops over tuples: