24.02.1
|
Basic function to run cpu::kernels::CpuPermuteKernel. More...
#include <NEPermute.h>
Public Member Functions | |
NEPermute () | |
Default Constructor. More... | |
~NEPermute () | |
Default Destructor. More... | |
NEPermute (const NEPermute &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEPermute (NEPermute &&)=default | |
Default move constructor. More... | |
NEPermute & | operator= (const NEPermute &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEPermute & | operator= (NEPermute &&)=default |
Default move assignment operator. More... | |
void | configure (const ITensor *input, ITensor *output, const PermutationVector &perm) |
Configure the permute function. 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 NEPermute. More... | |
Basic function to run cpu::kernels::CpuPermuteKernel.
Definition at line 39 of file NEPermute.h.
NEPermute | ( | ) |
Default Constructor.
Definition at line 39 of file NEPermute.cpp.
|
default |
Default Destructor.
Prevent instances of this class from being copied (As this class contains pointers)
void configure | ( | const ITensor * | input, |
ITensor * | output, | ||
const PermutationVector & | perm | ||
) |
Configure the permute function.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
All | All |
[in] | input | The input tensor to permute. Data types supported: All |
[out] | output | The output tensor. Data types supported: Same as input |
[in] | perm | Permutation vector |
Definition at line 45 of file NEPermute.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR, ITensor::info(), and arm_compute::test::validation::input.
Referenced by NEInstanceNormalizationLayer::configure(), NEFFTConvolutionLayer::configure(), and NEGenerateProposalsLayer::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 63 of file NEPermute.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
Referenced by NEFFTConvolutionLayer::prepare(), NEInstanceNormalizationLayer::run(), NEGenerateProposalsLayer::run(), and NEFFTConvolutionLayer::run().
|
static |
Static function to check if given info will lead to a valid configuration of NEPermute.
[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 NEPermute.cpp.
References ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, ARM_COMPUTE_RETURN_ON_ERROR, arm_compute::test::validation::input, and CpuPermute::validate().
Referenced by NEGenerateProposalsLayer::validate().