Compute Library
 21.02
CLDepthToSpaceLayer Class Reference

Basic function to run CLDepthToSpaceLayerKernel. More...

#include <CLDepthToSpaceLayer.h>

Collaboration diagram for CLDepthToSpaceLayer:
[legend]

Public Member Functions

void configure (const ICLTensor *input, ICLTensor *output, int32_t block_shape)
 Set the input and output tensors. More...
 
void configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, int32_t block_shape)
 Set the input and output tensors. 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 block_shape)
 Static function to check if given info will lead to a valid configuration of CLDepthToSpaceLayer. More...
 

Detailed Description

Basic function to run CLDepthToSpaceLayerKernel.

Definition at line 37 of file CLDepthToSpaceLayer.h.

Member Function Documentation

◆ configure() [1/2]

void configure ( const ICLTensor input,
ICLTensor output,
int32_t  block_shape 
)

Set the input and output tensors.

Parameters
[in]inputTensor input. Supported tensor rank: 4. Data types supported: All.
[out]outputTensor output. Data types supported: same as input
[in]block_shapeBlock shape value.

Definition at line 32 of file CLDepthToSpaceLayer.cpp.

References CLKernelLibrary::get().

33 {
34  configure(CLKernelLibrary::get().get_compile_context(), input, output, block_shape);
35 }
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
void configure(const ICLTensor *input, ICLTensor *output, int32_t block_shape)
Set the input and output tensors.

◆ configure() [2/2]

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

Set the input and output tensors.

Parameters
[in]compile_contextThe compile context to be used.
[in]inputTensor input. Supported tensor rank: 4. Data types supported: All.
[out]outputTensor output. Data types supported: same as input
[in]block_shapeBlock shape value.

Definition at line 37 of file CLDepthToSpaceLayer.cpp.

38 {
39  auto k = std::make_unique<CLDepthToSpaceLayerKernel>();
40  k->configure(compile_context, input, output, block_shape);
41  _kernel = std::move(k);
42 }

◆ validate()

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

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

Parameters
[in]inputTensor input info. Supported tensor rank: 4. Data types supported: All.
[in]outputTensor output info. Data types supported: same as input
[in]block_shapeBlock shape value.
Returns
a status

Definition at line 44 of file CLDepthToSpaceLayer.cpp.

References CLDepthToSpaceLayerKernel::validate().

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

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

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