Compute Library
 21.02
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...
 
void configure (const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, int32_t stride)
 Initialise the function's source and destination. More...
 
- Public Member Functions inherited from ICLSimpleFunction
 ICLSimpleFunction (CLRuntimeContext *ctx=nullptr)
 Constructor. More...
 
 ICLSimpleFunction (const ICLSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 ICLSimpleFunction (ICLSimpleFunction &&)=default
 Default move constructor. More...
 
ICLSimpleFunctionoperator= (const ICLSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
ICLSimpleFunctionoperator= (ICLSimpleFunction &&)=default
 Default move assignment operator. More...
 
 ~ICLSimpleFunction ()
 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, int32_t stride)
 Static function to check if given info will lead to a valid configuration of CLReorgLayer. More...
 

Detailed Description

Definition at line 36 of file CLReorgLayer.h.

Member Function Documentation

◆ configure() [1/2]

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

Initialise the function's source and destination.

Parameters
[in]inputSource tensor. Data types supported: All.
[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 36 of file CLReorgLayer.cpp.

References CLKernelLibrary::get().

37 {
38  configure(CLKernelLibrary::get().get_compile_context(), input, output, stride);
39 }
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
void configure(ICLTensor *input, ICLTensor *output, int32_t stride)
Initialise the function&#39;s source and destination.

◆ configure() [2/2]

void configure ( const CLCompileContext compile_context,
ICLTensor input,
ICLTensor output,
int32_t  stride 
)

Initialise the function's source and destination.

Parameters
[in]compile_contextThe compile context to be used.
[in]inputSource tensor. Data types supported: All.
[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 41 of file CLReorgLayer.cpp.

42 {
43  auto k = std::make_unique<CLReorgLayerKernel>();
44  k->configure(compile_context, input, output, stride);
45  _kernel = std::move(k);
46 }

◆ 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: All.
[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 48 of file CLReorgLayer.cpp.

References CLReorgLayerKernel::validate().

Referenced by arm_compute::test::validation::DATA_TEST_CASE().

49 {
50  return CLReorgLayerKernel::validate(input, output, stride);
51 }
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.

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