Compute Library
 19.08
NEReorgLayer Class Reference

Basic function to run NEReorgLayerKernel. More...

#include <NEReorgLayer.h>

Collaboration diagram for NEReorgLayer:
[legend]

Public Member Functions

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

Detailed Description

Basic function to run NEReorgLayerKernel.

Definition at line 36 of file NEReorgLayer.h.

Member Function Documentation

◆ configure()

void configure ( const ITensor input,
ITensor output,
int32_t  stride 
)

Initialise the kernel's inputs and outputs.

Parameters
[in]inputFirst tensor input. Data type supported: U8/S8/QASYMM8//U16/S16/U32/S32/F16/F32
[out]outputOutput tensor. Data type supported: Same as input
[in]strideStride to be used during data re-organization It defines the spatial distance between 2 consecutive pixels in the x and y direction

Definition at line 31 of file NEReorgLayer.cpp.

32 {
33  auto k = arm_compute::support::cpp14::make_unique<NEReorgLayerKernel>();
34  k->configure(input, output, stride);
35  _kernel = std::move(k);
36 }

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

Parameters
[in]inputFirst tensor info. Data type supported: U8/S8/QASYMM8//U16/S16/U32/S32/F16/F32
[in]outputOutput tensor info. Data type supported: Same as input
[in]strideStride to be used during data re-organization It defines the spatial distance between 2 consecutive pixels in the x and y direction
Returns
a status

Definition at line 38 of file NEReorgLayer.cpp.

39 {
40  return NEReorgLayerKernel::validate(input, output, stride);
41 }
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 NEReshapeLayerKernel.

References NEReorgLayerKernel::validate().


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