Compute Library
 21.02
NEDepthToSpaceLayer Class Reference

Basic function to run NEDepthToSpaceLayerKernel. More...

#include <NEDepthToSpaceLayer.h>

Collaboration diagram for NEDepthToSpaceLayer:
[legend]

Public Member Functions

 NEDepthToSpaceLayer ()=default
 Constructor. More...
 
 NEDepthToSpaceLayer (const NEDepthToSpaceLayer &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
NEDepthToSpaceLayeroperator= (const NEDepthToSpaceLayer &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 NEDepthToSpaceLayer (NEDepthToSpaceLayer &&)=delete
 Prevent instances of this class from being moved (As this class contains non movable objects) More...
 
NEDepthToSpaceLayeroperator= (NEDepthToSpaceLayer &&)=delete
 Prevent instances of this class from being moved (As this class contains non movable objects) More...
 
 ~NEDepthToSpaceLayer ()=default
 Default destructor. More...
 
void configure (const ITensor *input, ITensor *output, int32_t block_shape)
 Set the input and output tensors. More...
 
- Public Member Functions inherited from INESimpleFunctionNoBorder
 INESimpleFunctionNoBorder (IRuntimeContext *ctx=nullptr)
 Constructor. More...
 
 INESimpleFunctionNoBorder (const INESimpleFunctionNoBorder &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 INESimpleFunctionNoBorder (INESimpleFunctionNoBorder &&)=default
 Default move constructor. More...
 
INESimpleFunctionNoBorderoperator= (const INESimpleFunctionNoBorder &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
INESimpleFunctionNoBorderoperator= (INESimpleFunctionNoBorder &&)=default
 Default move assignment operator. More...
 
 ~INESimpleFunctionNoBorder ()
 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 NEDepthToSpaceLayer. More...
 

Detailed Description

Basic function to run NEDepthToSpaceLayerKernel.

Definition at line 39 of file NEDepthToSpaceLayer.h.

Constructor & Destructor Documentation

◆ NEDepthToSpaceLayer() [1/3]

NEDepthToSpaceLayer ( )
default

Constructor.

◆ NEDepthToSpaceLayer() [2/3]

Prevent instances of this class from being copied (As this class contains pointers)

◆ NEDepthToSpaceLayer() [3/3]

Prevent instances of this class from being moved (As this class contains non movable objects)

◆ ~NEDepthToSpaceLayer()

~NEDepthToSpaceLayer ( )
default

Default destructor.

Member Function Documentation

◆ configure()

void configure ( const ITensor input,
ITensor 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 35 of file NEDepthToSpaceLayer.cpp.

36 {
37  auto k = std::make_unique<NEDepthToSpaceLayerKernel>();
38  k->configure(input, output, block_shape);
39  _kernel = std::move(k);
40 }

◆ operator=() [1/2]

NEDepthToSpaceLayer& operator= ( const NEDepthToSpaceLayer )
delete

Prevent instances of this class from being copied (As this class contains pointers)

◆ operator=() [2/2]

NEDepthToSpaceLayer& operator= ( NEDepthToSpaceLayer &&  )
delete

Prevent instances of this class from being moved (As this class contains non movable objects)

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

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 x value.
Returns
a status

Definition at line 42 of file NEDepthToSpaceLayer.cpp.

References NEDepthToSpaceLayerKernel::validate().

43 {
44  return NEDepthToSpaceLayerKernel::validate(input, output, block_shape);
45 }
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 NEDepthToSpaceLayerKerne...

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