Compute Library
 21.02
CPPPermute Class Reference

Basic function to run CPPPermuteKernel. More...

#include <CPPPermute.h>

Collaboration diagram for CPPPermute:
[legend]

Public Member Functions

void configure (const ITensor *input, ITensor *output, const PermutationVector &perm)
 Configure the permute CPP kernel. More...
 
- Public Member Functions inherited from ICPPSimpleFunction
 ICPPSimpleFunction ()
 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 CPPPermute. More...
 

Detailed Description

Basic function to run CPPPermuteKernel.

Definition at line 36 of file CPPPermute.h.

Member Function Documentation

◆ configure()

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

Configure the permute CPP kernel.

Parameters
[in]inputThe input tensor to permute. Data types supported: All
[out]outputThe output tensor. Data types supported: Same as input
[in]permPermutation vector

Definition at line 30 of file CPPPermute.cpp.

Referenced by NEWinogradConvolutionLayer::configure().

31 {
32  auto k = std::make_unique<CPPPermuteKernel>();
33  k->configure(input, output, perm);
34  _kernel = std::move(k);
35 }

◆ 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 CPPPermute.

Parameters
[in]inputThe input tensor to permute. Data types supported: All
[in]outputThe output tensor. Data types supported: Same as input
[in]permPermutation vector
Returns
a status

Definition at line 37 of file CPPPermute.cpp.

References CPPPermuteKernel::validate().

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

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