Skip to content

Commit

Permalink
Merge pull request #49591 from geetachavan1/cherrypicks_PUF1Y
Browse files Browse the repository at this point in the history
Prevent check fail in FFT
  • Loading branch information
mihaimaruseac committed May 25, 2021
2 parents 19f3f1b + f116a60 commit 711324e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tensorflow/core/kernels/fft_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ class FFTCPU : public FFTBase {
input_slice_sizes[i] = fft_shape[i - 1];
temp_shape.AddDim(fft_shape[i - 1]);
}
OP_REQUIRES(ctx, temp_shape.num_elements() > 0,
errors::InvalidArgument("Obtained a FFT shape of 0 elements: ",
temp_shape.DebugString()));

auto output = out->flat_inner_dims<ComplexT, FFTRank + 1>();
const Eigen::DSizes<Eigen::DenseIndex, FFTRank + 1> zero_start_indices;
Expand Down

0 comments on commit 711324e

Please sign in to comment.