From 05fb448bf48e31d723dfd9f4bbf3899ff65f0fba Mon Sep 17 00:00:00 2001 From: giuros01 Date: Tue, 26 Mar 2019 17:44:40 +0000 Subject: COMPMID-1963: Implement FFT (2D) on NEON Change-Id: I3b564be8d7949e00c6544071ef62dd51de838c96 Signed-off-by: giuros01 Reviewed-on: https://review.mlplatform.org/c/1048 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas --- arm_compute/core/NEON/kernels/NEFFTRadixStageKernel.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'arm_compute/core/NEON/kernels/NEFFTRadixStageKernel.h') diff --git a/arm_compute/core/NEON/kernels/NEFFTRadixStageKernel.h b/arm_compute/core/NEON/kernels/NEFFTRadixStageKernel.h index a4c4be6f35..8498d3c613 100644 --- a/arm_compute/core/NEON/kernels/NEFFTRadixStageKernel.h +++ b/arm_compute/core/NEON/kernels/NEFFTRadixStageKernel.h @@ -24,10 +24,10 @@ #ifndef __ARM_COMPUTE_NEFFTRADIXSTAGEKERNEL_H__ #define __ARM_COMPUTE_NEFFTRADIXSTAGEKERNEL_H__ -#include "arm_compute/core/NEON/INEKernel.h" - #include "arm_compute/core/KernelDescriptors.h" +#include "arm_compute/core/NEON/INEKernel.h" +#include #include namespace arm_compute @@ -87,12 +87,17 @@ private: ITensor *_output; bool _run_in_place; unsigned int _Nx; + unsigned int _axis; + unsigned int _radix; + + void set_radix_stage_axis0(const FFTRadixStageKernelInfo &config); + void set_radix_stage_axis1(const FFTRadixStageKernelInfo &config); - template - void set_radix_stage_fun(unsigned int radix); + using FFTFunctionPointerAxis0 = std::function; + using FFTFunctionPointerAxis1 = std::function; - using FFTFunctionPointerInPlace = std::function; - FFTFunctionPointerInPlace _func; + FFTFunctionPointerAxis0 _func_0; + FFTFunctionPointerAxis1 _func_1; }; } // namespace arm_compute -#endif /*__ARM_COMPUTE_NEFFTKERNEL_H__ */ +#endif /*__ARM_COMPUTE_NEFFTRADIXSTAGEKERNEL_H__ */ -- cgit v1.2.1