24.02.1
|
Basic function to run NEBatchToSpaceLayerKernel. More...
#include <NEBatchToSpaceLayer.h>
Public Member Functions | |
NEBatchToSpaceLayer ()=default | |
Constructor. More... | |
NEBatchToSpaceLayer (const NEBatchToSpaceLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEBatchToSpaceLayer & | operator= (const NEBatchToSpaceLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEBatchToSpaceLayer (NEBatchToSpaceLayer &&)=delete | |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
NEBatchToSpaceLayer & | operator= (NEBatchToSpaceLayer &&)=delete |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
~NEBatchToSpaceLayer ()=default | |
Default destructor. More... | |
void | configure (const ITensor *input, const ITensor *block_shape, ITensor *output) |
Set the input and output tensors. More... | |
void | configure (const ITensor *input, int32_t block_shape_x, int32_t block_shape_y, ITensor *output, const CropInfo &crop_info=CropInfo{}) |
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... | |
INESimpleFunctionNoBorder & | operator= (const INESimpleFunctionNoBorder &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INESimpleFunctionNoBorder & | operator= (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 *block_shape, const ITensorInfo *output) |
Static function to check if given info will lead to a valid configuration of CLBatchToSpaceLayer. More... | |
static Status | validate (const ITensorInfo *input, int32_t block_shape_x, int32_t block_shape_y, const ITensorInfo *output, const CropInfo &crop_info=CropInfo{}) |
Static function to check if given info will lead to a valid configuration of CLBatchToSpaceLayer (Static block shape). More... | |
Basic function to run NEBatchToSpaceLayerKernel.
Definition at line 37 of file NEBatchToSpaceLayer.h.
|
default |
Constructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
default |
Default destructor.
Set the input and output tensors.
Valid data layouts:
Valid data type configurations:
src0 | src1 | dst |
---|---|---|
All | s32 | All |
[in] | input | Tensor input. Supported tensor rank: 4. Data types supported: All. |
[in] | block_shape | 1-D tensor with shape [M]. Data types supported: S32 |
[out] | output | Tensor output. Data types supported: same as input |
Definition at line 37 of file NEBatchToSpaceLayer.cpp.
References ARM_COMPUTE_LOG_PARAMS, and arm_compute::test::validation::input.
void configure | ( | const ITensor * | input, |
int32_t | block_shape_x, | ||
int32_t | block_shape_y, | ||
ITensor * | output, | ||
const CropInfo & | crop_info = CropInfo{} |
||
) |
Set the input and output tensors.
(Static block shape).
[in] | input | Tensor input. Supported tensor rank: 4. Data types supported: All. |
[in] | block_shape_x | Block shape x value. |
[in] | block_shape_y | Block shape y value. |
[out] | output | Tensor output. Data types supported: same as input |
[in] | crop_info | Specifies how the output shape is cropped after batch to space is performed |
Definition at line 45 of file NEBatchToSpaceLayer.cpp.
References arm_compute::test::validation::input.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
static |
Static function to check if given info will lead to a valid configuration of CLBatchToSpaceLayer.
[in] | input | Tensor input info. Supported tensor rank: 4. Data types supported: All. |
[in] | block_shape | block shape tensor info with shape [M]. Data types supported: S32 |
[out] | output | Tensor output info. Data types supported: same as input |
Definition at line 54 of file NEBatchToSpaceLayer.cpp.
References arm_compute::test::validation::input, and NEBatchToSpaceLayerKernel::validate().
|
static |
Static function to check if given info will lead to a valid configuration of CLBatchToSpaceLayer (Static block shape).
[in] | input | Tensor input info. Supported tensor rank: 4. Data types supported: All. |
[in] | block_shape_x | Block shape x value. |
[in] | block_shape_y | Block shape y value. |
[out] | output | Tensor output info. Data types supported: same as input |
[in] | crop_info | Specifies how the output shape is cropped after batch to space is performed |
Definition at line 59 of file NEBatchToSpaceLayer.cpp.
References arm_compute::test::validation::input, and NEBatchToSpaceLayerKernel::validate().