21.02
|
Basic function to execute an opencl::kernels::ClPermuteKernel. More...
#include <CLPermute.h>
Public Member Functions | |
CLPermute () | |
Constructor. More... | |
~CLPermute () | |
Destructor. More... | |
CLPermute (const CLPermute &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLPermute (CLPermute &&) | |
Default move constructor. More... | |
CLPermute & | operator= (const CLPermute &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLPermute & | operator= (CLPermute &&) |
Default move assignment operator. More... | |
void | configure (const ICLTensor *input, ICLTensor *output, const PermutationVector &perm) |
Set the input and output tensors. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const PermutationVector &perm) |
Set the input and output tensors. 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 PermutationVector &perm) |
Static function to check if given info will lead to a valid configuration of CLPermute. More... | |
Basic function to execute an opencl::kernels::ClPermuteKernel.
Definition at line 39 of file CLPermute.h.
CLPermute | ( | ) |
Constructor.
Definition at line 42 of file CLPermute.cpp.
References CLPermute::operator=(), and CLPermute::~CLPermute().
|
default |
Destructor.
Referenced by CLPermute::CLPermute().
Prevent instances of this class from being copied (As this class contains pointers)
void configure | ( | const ICLTensor * | input, |
ICLTensor * | output, | ||
const PermutationVector & | perm | ||
) |
Set the input and output tensors.
[in] | input | The input tensor to permute. Data types supported: All. |
[in] | output | The output tensor. Data types supported: Same as input |
[in] | perm | Permutation vector |
Definition at line 50 of file CLPermute.cpp.
References CLKernelLibrary::get().
Referenced by CLSoftmaxLayerGeneric< IS_LOG >::configure(), CLFFTConvolutionLayer::configure(), CLGenerateProposalsLayer::configure(), and CLGEMMDeconvolutionLayer::configure().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
ICLTensor * | output, | ||
const PermutationVector & | perm | ||
) |
Set the input and output tensors.
[in] | compile_context | The compile context to be used. |
[in] | input | The input tensor to permute. Data types supported: All. |
[in] | output | The output tensor. Data types supported: Same as input |
[in] | perm | Permutation vector |
Definition at line 55 of file CLPermute.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, and arm_compute::test::validation::input.
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by CLPermute::CLPermute().
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 71 of file CLPermute.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, and ITensorPack::add_tensor().
Referenced by CLGEMMDeconvolutionLayer::prepare(), CLFFTConvolutionLayer::prepare(), CLSoftmaxLayerGeneric< IS_LOG >::run(), CLGEMMDeconvolutionLayer::run(), CLFFTConvolutionLayer::run(), and CLGenerateProposalsLayer::run().
|
static |
Static function to check if given info will lead to a valid configuration of CLPermute.
[in] | input | First tensor input info. Data types supported: All. |
[in] | output | Output tensor info. Data types supported: same as input . |
[in] | perm | Permutation vector |
Definition at line 66 of file CLPermute.cpp.
References ClPermute::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE(), CLSoftmaxLayerGeneric< IS_LOG >::validate(), CLGEMMDeconvolutionLayer::validate(), and CLGenerateProposalsLayer::validate().