Compute Library
 19.08
CLTranspose Class Reference

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

#include <CLTranspose.h>

Collaboration diagram for CLTranspose:
[legend]

Public Member Functions

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

Detailed Description

Basic function to transpose a matrix on OpenCL.

This function calls the following OpenCL kernel:

  1. CLTransposeKernel

Definition at line 38 of file CLTranspose.h.

Member Function Documentation

◆ configure()

void configure ( const ICLTensor input,
ICLTensor 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 CLTranspose.cpp.

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

Referenced by CLLSTMLayerQuantized::configure(), and CLGEMMDeconvolutionLayer::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 CLTranspose.

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 CLTranspose.cpp.

41 {
42  return CLTransposeKernel::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 CLTransposeKernel.

References CLTransposeKernel::validate().

Referenced by CLGEMMDeconvolutionLayer::validate(), and CLLSTMLayerQuantized::validate().


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