Compute Library
 21.02
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 (IRuntimeContext *ctx=nullptr)
 Constructor. More...
 
 INESimpleFunctionNoBorder (const INESimpleFunctionNoBorder &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 INESimpleFunctionNoBorder (INESimpleFunctionNoBorder &&)=default
 Default move constructor. More...
 
INESimpleFunctionNoBorderoperator= (const INESimpleFunctionNoBorder &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
INESimpleFunctionNoBorderoperator= (INESimpleFunctionNoBorder &&)=default
 Default move assignment operator. More...
 
 ~INESimpleFunctionNoBorder ()
 Default destructor. 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 40 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: All
[out]outputOutput tensor. Data type supported: Same as input

Definition at line 32 of file NETranspose.cpp.

Referenced by NELSTMLayer::configure(), NELSTMLayerQuantized::configure(), and NEQLSTMLayer::configure().

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

◆ 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: All
[in]outputThe output tensor. Data types supported: Same as input
Returns
a status

Definition at line 39 of file NETranspose.cpp.

References NETransposeKernel::validate().

Referenced by arm_compute::test::validation::DATA_TEST_CASE(), NELSTMLayerQuantized::validate(), and NEQLSTMLayer::validate().

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

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