aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/framework
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-09-06 07:29:33 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-06 07:33:27 -0700
commit04f3ddac5b69c85558657db5c1b409059716fdb7 (patch)
treec8ffc7918b8bd5a2cb35c6903eb38d0c26a1ecde /tensorflow/python/framework
parent973780717983b2ee1f4f52b5ab1f8595e6ba4a05 (diff)
Documentation fix for TensorShape.__getitem__
RELNOTES: n/a PiperOrigin-RevId: 211804843
Diffstat (limited to 'tensorflow/python/framework')
-rw-r--r--tensorflow/python/framework/tensor_shape.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/python/framework/tensor_shape.py b/tensorflow/python/framework/tensor_shape.py
index 11b681d544..3c2a736fb9 100644
--- a/tensorflow/python/framework/tensor_shape.py
+++ b/tensorflow/python/framework/tensor_shape.py
@@ -606,8 +606,8 @@ class TensorShape(object):
slice.
Raises:
- ValueError: If `key` is a slice, and any of its elements are negative, or
- if `self` is completely unknown and the step is set.
+ ValueError: If `key` is a slice and `self` is completely unknown and
+ the step is set.
"""
if self._dims is not None:
if isinstance(key, slice):