24.02.1
|
Basic function to execute an opencl::kernels::ClTransposeKernel. More...
#include <CLTranspose.h>
Public Member Functions | |
CLTranspose () | |
Constructor. More... | |
~CLTranspose () | |
Destructor. More... | |
CLTranspose (const CLTranspose &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLTranspose (CLTranspose &&)=default | |
Default move constructor. More... | |
CLTranspose & | operator= (const CLTranspose &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLTranspose & | operator= (CLTranspose &&)=default |
Default move assignment operator. More... | |
void | configure (const ICLTensor *input, ICLTensor *output) |
Initialise the kernel's inputs and output. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output) |
Initialise the kernel's inputs and output. 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) |
Static function to check if given info will lead to a valid configuration of CLTranspose. More... | |
Basic function to execute an opencl::kernels::ClTransposeKernel.
Definition at line 39 of file CLTranspose.h.
CLTranspose | ( | ) |
Constructor.
Definition at line 42 of file CLTranspose.cpp.
|
default |
Destructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
ICLTensor * | output | ||
) |
Initialise the kernel's inputs and output.
[in] | compile_context | The compile context to be used. |
[in] | input | Input tensor. Data types supported: All. |
[out] | output | Output tensor. Data type supported: Same as input |
Definition at line 52 of file CLTranspose.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, and arm_compute::test::validation::input.
Initialise the kernel's inputs and output.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
All | All |
[in] | input | Input tensor. Data types supported: All. |
[out] | output | Output tensor. Data type supported: Same as input |
Definition at line 47 of file CLTranspose.cpp.
References CLKernelLibrary::get(), and arm_compute::test::validation::input.
Referenced by CLGEMMDeconvolutionLayer::configure(), CLLSTMLayerQuantized::configure(), and CLQLSTMLayer::configure().
|
default |
Default move assignment operator.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 66 of file CLTranspose.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
Referenced by CLGEMMDeconvolutionLayer::prepare(), CLLSTMLayerQuantized::prepare(), and CLQLSTMLayer::prepare().
|
static |
Static function to check if given info will lead to a valid configuration of CLTranspose.
[in] | input | The input tensor. Data types supported: All. |
[in] | output | The output tensor. Data types supported: Same as input |
Definition at line 61 of file CLTranspose.cpp.
References arm_compute::test::validation::input, and ClTranspose::validate().
Referenced by CLGEMMDeconvolutionLayer::validate(), CLLSTMLayerQuantized::validate(), and CLQLSTMLayer::validate().