Compute Library
 19.08
NEPermute Class Reference

Basic function to run NEPermuteKernel. More...

#include <NEPermute.h>

Collaboration diagram for NEPermute:
[legend]

Public Member Functions

void configure (const ITensor *input, ITensor *output, const PermutationVector &perm)
 Configure the permute NEON kernel. More...
 
- Public Member Functions inherited from INESimpleFunctionNoBorder
 INESimpleFunctionNoBorder ()
 Constructor. More...
 
void run () override final
 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...
 

Detailed Description

Basic function to run NEPermuteKernel.

Definition at line 36 of file NEPermute.h.

Member Function Documentation

◆ configure()

void configure ( const ITensor input,
ITensor output,
const PermutationVector perm 
)

Configure the permute NEON kernel.

Note
Supported permutation vectors : [2, 0, 1], [1, 2, 0]
Parameters
[in]inputThe input tensor to permute. Data types supported: U8/S8/QASYMM8/U16/S16/F16/U32/S32/F32
[out]outputThe output tensor. Data types supported: Same as input
[in]permPermutation vector

Definition at line 31 of file NEPermute.cpp.

32 {
33  auto k = arm_compute::support::cpp14::make_unique<NEPermuteKernel>();
34  k->configure(input, output, perm);
35  _kernel = std::move(k);
36 }

Referenced by NEFFTConvolutionLayer::configure(), NEDeconvolutionLayer::configure(), and NEDepthwiseConvolutionLayer::configure().

◆ validate()

Status validate ( const ITensorInfo input,
const ITensorInfo output,
const PermutationVector perm 
)
static

Static function to check if given info will lead to a valid configuration of NEPermute.

Note
Supported permutation vectors : [2, 0, 1], [1, 2, 0]
Parameters
[in]inputThe input tensor to permute. Data types supported: U8/S8/QASYMM8/U16/S16/F16/U32/S32/F32
[in]outputThe output tensor. Data types supported: Same as input
[in]permPermutation vector
Returns
a status

Definition at line 38 of file NEPermute.cpp.

39 {
40  return NEPermuteKernel::validate(input, output, perm);
41 }
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 CPPPermuteKernel.

References NEPermuteKernel::validate().


The documentation for this class was generated from the following files: