24.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 | |
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 |
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 44 of file CLPermute.cpp.
|
default |
Destructor.
Prevent instances of this class from being copied (As this class contains pointers)
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, ARM_COMPUTE_LOG_PARAMS, and arm_compute::test::validation::input.
void configure | ( | const ICLTensor * | input, |
ICLTensor * | output, | ||
const PermutationVector & | perm | ||
) |
Set the input and output tensors.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
All | All |
[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(), and arm_compute::test::validation::input.
Referenced by CLDepthwiseConvolutionLayer::configure(), CLFFTConvolutionLayer::configure(), CLGenerateProposalsLayer::configure(), and CLGEMMDeconvolutionLayer::configure().
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 75 of file CLPermute.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
Referenced by CLDepthwiseConvolutionLayer::prepare(), CLFFTConvolutionLayer::prepare(), CLGEMMDeconvolutionLayer::prepare(), CLDepthwiseConvolutionLayer::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 70 of file CLPermute.cpp.
References arm_compute::test::validation::input, and ClPermute::validate().
Referenced by CLDepthwiseConvolutionLayer::validate(), CLGEMMDeconvolutionLayer::validate(), and CLGenerateProposalsLayer::validate().