21.02
|
Basic function to execute two dimensional FFT. More...
#include <CLFFT2D.h>
Public Member Functions | |
CLFFT2D (std::shared_ptr< IMemoryManager > memory_manager=nullptr) | |
Default Constructor. More... | |
CLFFT2D (const CLFFT2D &)=delete | |
Prevent instances of this class from being copied. More... | |
CLFFT2D & | operator= (const CLFFT2D &)=delete |
Prevent instances of this class from being copied. More... | |
CLFFT2D (CLFFT2D &&)=default | |
Default move constructor. More... | |
CLFFT2D & | operator= (CLFFT2D &&)=default |
Default move assignment operator. More... | |
~CLFFT2D () | |
Default destructor. More... | |
void | configure (const ICLTensor *input, ICLTensor *output, const FFT2DInfo &config) |
Initialise the function's source, destinations and border mode. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const FFT2DInfo &config) |
Initialise the function's source, destinations and border mode. More... | |
void | run () override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from IFunction | |
virtual | ~IFunction ()=default |
Destructor. More... | |
virtual void | prepare () |
Prepare the function for executing. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *output, const FFT2DInfo &config) |
Static function to check if given info will lead to a valid configuration of CLFFT2D. More... | |
Basic function to execute two dimensional FFT.
This function calls the following OpenCL kernels:
CLFFT2D | ( | std::shared_ptr< IMemoryManager > | memory_manager = nullptr | ) |
|
default |
Default destructor.
Referenced by CLFFT2D::CLFFT2D().
Initialise the function's source, destinations and border mode.
[in] | input | Source tensor. Data types supported: F16/F32. |
[out] | output | Destination tensor. Data types and data layouts supported: Same as input . |
[in] | config | FFT related configuration |
Definition at line 42 of file CLFFT2D.cpp.
References CLKernelLibrary::get().
Referenced by CLFFTConvolutionLayer::configure().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
ICLTensor * | output, | ||
const FFT2DInfo & | config | ||
) |
Initialise the function's source, destinations and border mode.
[in] | compile_context | The compile context to be used. |
[in] | input | Source tensor. Data types supported: F16/F32. |
[out] | output | Destination tensor. Data types and data layouts supported: Same as input . |
[in] | config | FFT related configuration |
Definition at line 47 of file CLFFT2D.cpp.
References CLTensorAllocator::allocate(), CLTensor::allocator(), ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_ERROR_THROW_ON, FFT1DInfo::axis, FFT2DInfo::axis0, FFT2DInfo::axis1, CLFFT1D::configure(), FFT1DInfo::direction, FFT2DInfo::direction, ITensor::info(), MemoryGroup::manage(), and CLFFT2D::validate().
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 97 of file CLFFT2D.cpp.
References CLFFT1D::run().
Referenced by CLFFTConvolutionLayer::run().
|
static |
Static function to check if given info will lead to a valid configuration of CLFFT2D.
[in] | input | Source tensor info. Data types supported: F16/F32. |
[in] | output | Destination tensor info. Data types and data layouts supported: Same as input . |
[in] | config | FFT related configuration |
Definition at line 67 of file CLFFT2D.cpp.
References ARM_COMPUTE_RETURN_ERROR_ON_DATA_TYPE_NOT_IN, ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES, ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_SHAPES, ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, ARM_COMPUTE_RETURN_ON_ERROR, FFT1DInfo::axis, FFT2DInfo::axis0, FFT2DInfo::axis1, ICloneable< T >::clone(), FFT1DInfo::direction, FFT2DInfo::direction, arm_compute::F16, arm_compute::F32, ITensorInfo::total_size(), and CLFFT1D::validate().
Referenced by CLFFT2D::configure().