Compute Library
 19.08
NETranspose Class Reference

Basic function to transpose a matrix on NEON. More...

#include <NETranspose.h>

Collaboration diagram for NETranspose:
[legend]

Public Member Functions

void configure (const ITensor *input, ITensor *output)
 Initialise the kernel's inputs and output. 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)
 Static function to check if given info will lead to a valid configuration of NETranspose. More...
 

Detailed Description

Basic function to transpose a matrix on NEON.

This function calls the following NEON kernel:

  1. NETransposeKernel

Definition at line 39 of file NETranspose.h.

Member Function Documentation

◆ configure()

void configure ( const ITensor input,
ITensor output 
)

Initialise the kernel's inputs and output.

Parameters
[in]inputInput tensor. Data types supported: U8/S8/QASYMM8/U16/S16/F16/U32/S32/F32
[out]outputOutput tensor. Data type supported: Same as input

Definition at line 33 of file NETranspose.cpp.

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

Referenced by NELSTMLayerQuantized::configure().

◆ validate()

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

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

Parameters
[in]inputThe input tensor. Data types supported: U8/S8/QASYMM8/U16/S16/F16/U32/S32/F32
[in]outputThe output tensor. Data types supported: Same as input
Returns
a status

Definition at line 40 of file NETranspose.cpp.

41 {
42  return NETransposeKernel::validate(input, output);
43 }
static Status validate(const ITensorInfo *input, const ITensorInfo *output)
Static function to check if given info will lead to a valid configuration of NETransposeKernel.

References NETransposeKernel::validate().

Referenced by NELSTMLayerQuantized::validate().


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