aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc
diff options
context:
space:
mode:
authorGravatar Peter Hawkins <phawkins@google.com>2018-02-05 14:12:02 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-02-05 14:16:03 -0800
commit473bc3580510e2da299662da200791cf4a9fb086 (patch)
treec0993c14233818f1cddee862781d077c0c5c9961 /tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc
parent1bbfc0c9cebd1808fa46024f738e56d10d57d97e (diff)
[TF:XLA] Implement GatherNd.
PiperOrigin-RevId: 184584104
Diffstat (limited to 'tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc')
-rw-r--r--tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc b/tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc
index 7cf9b796b9..000b50af6b 100644
--- a/tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc
+++ b/tensorflow/compiler/tf2xla/kernels/tensor_array_ops.cc
@@ -337,8 +337,11 @@ class TensorArrayGatherOp : public XlaOpKernel {
}
}
- xla::ComputationDataHandle gather = XlaComputeGatherDynamicSlice(
- ctx, ta, ta_shape, indices, indices_shape, 0, dtype_, index_type, b);
+ xla::ComputationDataHandle gather;
+ OP_REQUIRES_OK(
+ ctx,
+ XlaGather(ta, ta_shape, indices, indices_shape, /*axis=*/0,
+ /*indices_are_nd=*/false, dtype_, index_type, b, &gather));
ctx->SetOutput(0, gather);
}