Skip to content

Commit

Permalink
Merge pull request #56020 from tensorflow/mm-fix-r2.6
Browse files Browse the repository at this point in the history
Fix compilation due to double declaration caused by cherrypick
  • Loading branch information
mihaimaruseac committed May 9, 2022
2 parents 92c8dfb + faf6af2 commit 7ee5422
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tensorflow/compiler/tf2xla/kernels/spacetobatch_op.cc
Expand Up @@ -77,7 +77,6 @@ void SpaceToBatch(XlaOpKernelContext* ctx, const xla::XlaOp& input,
OP_REQUIRES(ctx, block_num_elems > 0,
errors::InvalidArgument(
"The product of the block dimensions must be positive"));
const int64_t batch_size = input_shape[0];
const int64_t output_dim =
MultiplyWithoutOverflow(batch_size, block_num_elems);
if (output_dim < 0) {
Expand Down

0 comments on commit 7ee5422

Please sign in to comment.