Compute Library
 19.08
CLReorgLayer Class Reference

#include <CLReorgLayer.h>

Collaboration diagram for CLReorgLayer:
[legend]

Public Member Functions

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

Detailed Description

Definition at line 34 of file CLReorgLayer.h.

Member Function Documentation

◆ configure()

void configure ( ICLTensor input,
ICLTensor output,
int32_t  stride 
)

Initialise the function's source and destination.

Parameters
[in]inputSource tensor. Data types supported: U8/S8/QASYMM8/U16/S16/F16/U32/S32/F32.
[out]outputDestination tensor with tensor shape: [width_input / stride, height_input / stride, channels_input * stride * stride, batch_size]. This means the output has the same number of input elements. Data types supported: same as input.
[in]strideStride value to use for reorganizing the values in the output tensor. It defines the spatial distance between 2 consecutive pixels in the x and y direction

Definition at line 37 of file CLReorgLayer.cpp.

38 {
39  auto k = arm_compute::support::cpp14::make_unique<CLReorgLayerKernel>();
40  k->configure(input, output, stride);
41  _kernel = std::move(k);
42 }

◆ validate()

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

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

Parameters
[in]inputSource tensor. Data types supported: U8/S8/QASYMM8/U16/S16/F16/U32/S32/F32.
[in]outputDestination tensor with tensor shape: [width_input / stride, height_input / stride, channels_input * stride * stride, batch_size]. This means the output has the same number of input elements. Data types supported: same as input. Data types supported: same as input.
[in]strideStride value to use for reorganizing the values in the output tensor It defines the spatial distance between 2 consecutive pixels in the x and y direction
Returns
a status

Definition at line 44 of file CLReorgLayer.cpp.

45 {
46  return CLReorgLayerKernel::validate(input, output, stride);
47 }
static Status validate(const ITensorInfo *input, const ITensorInfo *output, int32_t stride)
Static function to check if given info will lead to a valid configuration of CLReorgLayerKernel.

References CLReorgLayerKernel::validate().


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