aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/tf2xla
diff options
context:
space:
mode:
authorGravatar Sanjoy Das <sanjoy@google.com>2018-09-16 19:50:17 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-16 19:53:50 -0700
commit2501870be0df24ca0e191710b1de139e195616a3 (patch)
treebccb3ca9e928e2ca1ee711c92061426391a05554 /tensorflow/compiler/tf2xla
parentc06cd5710ce42e1e0b0a8bd5eebca3d5f816330e (diff)
Fix some typos in the doc for XlaDynamicSlice
phawkins@ suggested these in cr/212715067 but I accidentally made the changes in another client. PiperOrigin-RevId: 213208811
Diffstat (limited to 'tensorflow/compiler/tf2xla')
-rw-r--r--tensorflow/compiler/tf2xla/ops/xla_ops.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/tensorflow/compiler/tf2xla/ops/xla_ops.cc b/tensorflow/compiler/tf2xla/ops/xla_ops.cc
index 02363500ef..733eeed3c6 100644
--- a/tensorflow/compiler/tf2xla/ops/xla_ops.cc
+++ b/tensorflow/compiler/tf2xla/ops/xla_ops.cc
@@ -121,8 +121,8 @@ Wraps the XLA DynamicSlice operator, documented at
DynamicSlice extracts a sub-array from the input array at dynamic
start_indices. The size of the slice in each dimension is passed in
size_indices, which specify the end point of exclusive slice intervals in each
-dimension -- [start, start + size). The shape of start_indices must be rank ==
-1, with dimension size equal to the rank of operand.
+dimension -- [start, start + size). The shape of start_indices must have rank 1,
+with dimension size equal to the rank of operand.
input: A `Tensor` of type T.
@@ -131,7 +131,8 @@ start_indices: Rank 1 tensor of N integers containing the starting indices of
start_indices: List of N integers containing the slice size for each
dimension. Each value must be strictly greater than zero, and start + size
- must be less
+ must be less than or equal to the size of the dimension to avoid
+ implementation defined behavior.
)doc");
REGISTER_OP("XlaDynamicUpdateSlice")