Skip to content

Commit

Permalink
Adjustments to fft_ops_test.py.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 158612165
  • Loading branch information
tensorflower-gardener committed Jun 10, 2017
1 parent 88d4076 commit 51ec66e
Show file tree
Hide file tree
Showing 3 changed files with 225 additions and 183 deletions.
10 changes: 6 additions & 4 deletions tensorflow/core/kernels/fft_ops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,12 @@ class FFTCPU : public FFTBase {
reversedAxis[i] = i == FFTRank;
}

full_fft.slice(negTargetIndices, negSizes) =
full_fft.slice(negStartIndices, negSizes)
.reverse(reversedAxis)
.conjugate();
if (negSizes[FFTRank] != 0) {
full_fft.slice(negTargetIndices, negSizes) =
full_fft.slice(negStartIndices, negSizes)
.reverse(reversedAxis)
.conjugate();
}

auto innerAxis = Eigen::array<int, 1>{FFTRank};
output.device(device) =
Expand Down
6 changes: 1 addition & 5 deletions tensorflow/python/kernel_tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2184,11 +2184,7 @@ cuda_py_test(
"//tensorflow/python:math_ops",
"//tensorflow/python:spectral_ops",
],
tags = [
"noasan",
"nomsan",
"notsan", # http:https://b/62067589
],
shard_count = 3,
)

cuda_py_test(
Expand Down
Loading

0 comments on commit 51ec66e

Please sign in to comment.