diff options
author | 2017-12-22 19:28:38 -0800 | |
---|---|---|
committer | 2017-12-22 19:32:50 -0800 | |
commit | 7d1072dd3374a0aa22637a0fd4a17a4ddd064110 (patch) | |
tree | 610b7bc7d64a0e31481f7f080f1ce49168120f09 /tensorflow/compiler/xla/service/shape_inference.h | |
parent | 12a4c9b8628b23cc2bf4c89c83c32760aded6124 (diff) |
Adds FFT for XLA: CPU via Eigen, GPU via cuFFT.
GPU support includes plan reuse with new scratch allocator per execution in fft_thunk.
PiperOrigin-RevId: 179983419
Diffstat (limited to 'tensorflow/compiler/xla/service/shape_inference.h')
-rw-r--r-- | tensorflow/compiler/xla/service/shape_inference.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tensorflow/compiler/xla/service/shape_inference.h b/tensorflow/compiler/xla/service/shape_inference.h index c06340d2d5..b39151ebbc 100644 --- a/tensorflow/compiler/xla/service/shape_inference.h +++ b/tensorflow/compiler/xla/service/shape_inference.h @@ -109,6 +109,11 @@ class ShapeInference { const Shape& lhs, const Shape& rhs, const Window& window, const ConvolutionDimensionNumbers& dimension_numbers); + // Infers the shape produced by the given FFT type on the given operand. + static StatusOr<Shape> InferFftShape( + const Shape& in, FftType fft_type, + tensorflow::gtl::ArraySlice<int64> fft_length); + // Infers the shape produced a cross replica sum with the given operand // shapes. static StatusOr<Shape> InferCrossReplicaSumShape( |