Compute Library
 19.08
CLPermute Class Reference

Basic function to execute an CLPermuteKernel. More...

#include <CLPermute.h>

Collaboration diagram for CLPermute:
[legend]

Public Member Functions

void configure (const ICLTensor *input, ICLTensor *output, const PermutationVector &perm)
 Set the input and output tensors. More...
 
- Public Member Functions inherited from ICLSimpleFunction
 ICLSimpleFunction ()
 Default 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 CLPermute. More...
 

Detailed Description

Basic function to execute an CLPermuteKernel.

Definition at line 37 of file CLPermute.h.

Member Function Documentation

◆ configure()

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

Set the input and output tensors.

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

Definition at line 33 of file CLPermute.cpp.

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

Referenced by CLDepthwiseConvolutionLayer3x3::configure(), CLFFTConvolutionLayer::configure(), and CLGEMMDeconvolutionLayer::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 CLPermute.

Parameters
[in]inputFirst tensor input info. Data types supported: U8/S8/QASYMM8/U16/S16/F16/U32/S32/F32.
[in]outputOutput tensor info. Data types supported: same as input.
[in]permPermutation vector
Returns
a status

Definition at line 40 of file CLPermute.cpp.

41 {
43  return Status{};
44 }
#define ARM_COMPUTE_RETURN_ON_ERROR(status)
Checks if a status contains an error and returns it.
Definition: Error.h:193
Status class.
Definition: Error.h:52
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 CLPermuteKernel.

References ARM_COMPUTE_RETURN_ON_ERROR, and CLPermuteKernel::validate().

Referenced by CLGEMMDeconvolutionLayer::validate().


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