aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/tf2xla/kernels/slice_op.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/tf2xla/kernels/slice_op.cc')
-rw-r--r--tensorflow/compiler/tf2xla/kernels/slice_op.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/tensorflow/compiler/tf2xla/kernels/slice_op.cc b/tensorflow/compiler/tf2xla/kernels/slice_op.cc
index 482c54a40c..51c97d85d7 100644
--- a/tensorflow/compiler/tf2xla/kernels/slice_op.cc
+++ b/tensorflow/compiler/tf2xla/kernels/slice_op.cc
@@ -54,9 +54,7 @@ class SliceOp : public XlaOpKernel {
for (int i = 0; i < begin.size(); ++i) {
limits.push_back(begin[i] + size[i]);
}
- std::vector<int64> strides(begin.size(), 1);
- ctx->SetOutput(0, ctx->builder()->Slice(ctx->Input(0), begin, limits,
- strides));
+ ctx->SetOutput(0, ctx->builder()->Slice(ctx->Input(0), begin, limits));
}
private: