diff options
Diffstat (limited to 'tensorflow/compiler/tf2xla/kernels/batchtospace_op.cc')
-rw-r--r-- | tensorflow/compiler/tf2xla/kernels/batchtospace_op.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/compiler/tf2xla/kernels/batchtospace_op.cc b/tensorflow/compiler/tf2xla/kernels/batchtospace_op.cc index 47d2d747e6..21d3e64872 100644 --- a/tensorflow/compiler/tf2xla/kernels/batchtospace_op.cc +++ b/tensorflow/compiler/tf2xla/kernels/batchtospace_op.cc @@ -125,6 +125,7 @@ void BatchToSpace(XlaOpKernelContext* ctx, // input_shape[M+1], ..., input_shape[N-1]] std::vector<int64> start_indices(input_rank, 0); std::vector<int64> end_indices = reshaped_permuted_shape; + std::vector<int64> strides(input_rank, 1); for (int i = 0; i < block_rank; ++i) { int64 crop_start = crops.Get<int64>({i, 0}); int64 crop_end = crops.Get<int64>({i, 1}); @@ -139,7 +140,7 @@ void BatchToSpace(XlaOpKernelContext* ctx, " end: ", crop_end, " size ", reshaped_permuted_shape[1 + i])); } xla::ComputationDataHandle output = - b->Slice(reshaped_permuted, start_indices, end_indices); + b->Slice(reshaped_permuted, start_indices, end_indices, strides); ctx->SetOutput(0, output); } |