aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-06-14 09:07:31 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-06-14 09:14:10 -0700
commit5cc5161c40a05e8d61872044321b8d954b5939e4 (patch)
tree2992a9e30234e46a2327923ecf0848d5f4ff6e6e
parentdf511d09b051914cbc4fc559807a3f0d07dfee71 (diff)
Minor cleanup
PiperOrigin-RevId: 158984989
-rw-r--r--tensorflow/compiler/xla/legacy_flags/BUILD1
-rw-r--r--tensorflow/core/kernels/fft_ops.cc6
2 files changed, 3 insertions, 4 deletions
diff --git a/tensorflow/compiler/xla/legacy_flags/BUILD b/tensorflow/compiler/xla/legacy_flags/BUILD
index a147ce67a2..0775dbe86e 100644
--- a/tensorflow/compiler/xla/legacy_flags/BUILD
+++ b/tensorflow/compiler/xla/legacy_flags/BUILD
@@ -73,7 +73,6 @@ cc_library(
deps =
[
":parse_flags_from_env",
- "//tensorflow/compiler/xla:types",
"//tensorflow/compiler/xla:xla_proto",
"//tensorflow/core:framework_internal",
"//tensorflow/core:lib",
diff --git a/tensorflow/core/kernels/fft_ops.cc b/tensorflow/core/kernels/fft_ops.cc
index 32936d65c8..35a3f7b189 100644
--- a/tensorflow/core/kernels/fft_ops.cc
+++ b/tensorflow/core/kernels/fft_ops.cc
@@ -128,7 +128,7 @@ class FFTCPU : public FFTBase {
auto device = ctx->eigen_device<CPUDevice>();
if (!IsReal()) {
- auto input = (Tensor(in)).flat_inner_dims<complex64, FFTRank + 1>();
+ auto input = Tensor(in).flat_inner_dims<complex64, FFTRank + 1>();
// Compute the FFT using eigen.
auto output = out->flat_inner_dims<complex64, FFTRank + 1>();
constexpr auto direction =
@@ -137,7 +137,7 @@ class FFTCPU : public FFTBase {
input.template fft<Eigen::BothParts, direction>(axes);
} else {
if (IsForward()) {
- auto input = (Tensor(in)).flat_inner_dims<float, FFTRank + 1>();
+ auto input = Tensor(in).flat_inner_dims<float, FFTRank + 1>();
const auto input_dims = input.dimensions();
// Slice input to fft_shape on its inner-most dimensions.
@@ -166,7 +166,7 @@ class FFTCPU : public FFTBase {
full_fft.slice(zero_start_indices, output.dimensions());
} else {
// Reconstruct the full FFT and take the inverse.
- auto input = ((Tensor)in).flat_inner_dims<complex64, FFTRank + 1>();
+ auto input = Tensor(in).flat_inner_dims<complex64, FFTRank + 1>();
auto output = out->flat_inner_dims<float, FFTRank + 1>();
const auto input_dims = input.dimensions();