24.02.1
|
Basic function to run CLBatchToSpaceLayerKernel. More...
#include <CLBatchToSpaceLayer.h>
Public Member Functions | |
CLBatchToSpaceLayer () | |
Default constructor. More... | |
CLBatchToSpaceLayer (const CLBatchToSpaceLayer &)=delete | |
Prevent instances of this class from being copied. More... | |
CLBatchToSpaceLayer & | operator= (const CLBatchToSpaceLayer &)=delete |
Prevent instances of this class from being copied. More... | |
CLBatchToSpaceLayer (CLBatchToSpaceLayer &&)=delete | |
Prevent instances of this class to be moved. More... | |
CLBatchToSpaceLayer & | operator= (CLBatchToSpaceLayer &&)=delete |
Prevent instances of this class to be moved. More... | |
~CLBatchToSpaceLayer () | |
Default destructor. More... | |
void | configure (const ICLTensor *input, const ICLTensor *block_shape, ICLTensor *output) |
Set the input and output tensors. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, const ICLTensor *block_shape, ICLTensor *output) |
Set the input and output tensors. More... | |
void | configure (const ICLTensor *input, int32_t block_shape_x, int32_t block_shape_y, ICLTensor *output, const CropInfo &crop_info=CropInfo{}) |
Set the input and output tensors. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, int32_t block_shape_x, int32_t block_shape_y, ICLTensor *output, const CropInfo &crop_info=CropInfo{}) |
Set the input and output tensors. More... | |
void | run () override |
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 CLBatchToSpaceLayerKernel.
Definition at line 40 of file CLBatchToSpaceLayer.h.
Default constructor.
Definition at line 38 of file CLBatchToSpaceLayer.cpp.
|
delete |
Prevent instances of this class from being copied.
|
delete |
Prevent instances of this class to be moved.
|
default |
Default destructor.
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
const ICLTensor * | block_shape, | ||
ICLTensor * | output | ||
) |
Set the input and output tensors.
[in] | compile_context | The compile context to be used. |
[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 50 of file CLBatchToSpaceLayer.cpp.
References ARM_COMPUTE_LOG_PARAMS, and arm_compute::test::validation::input.
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
int32_t | block_shape_x, | ||
int32_t | block_shape_y, | ||
ICLTensor * | output, | ||
const CropInfo & | crop_info = CropInfo{} |
||
) |
Set the input and output tensors.
(Static block shape).
[in] | compile_context | The compile context to be used. |
[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 | Information about how the output shape is cropped after batch to space is performed |
Definition at line 65 of file CLBatchToSpaceLayer.cpp.
References ARM_COMPUTE_LOG_PARAMS, and arm_compute::test::validation::input.
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 44 of file CLBatchToSpaceLayer.cpp.
References ARM_COMPUTE_LOG_PARAMS, CLKernelLibrary::get(), and arm_compute::test::validation::input.
Referenced by CLBatchToSpaceLayer::configure().
void configure | ( | const ICLTensor * | input, |
int32_t | block_shape_x, | ||
int32_t | block_shape_y, | ||
ICLTensor * | 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 | Information about how the output shape is cropped after batch to space is performed |
Definition at line 59 of file CLBatchToSpaceLayer.cpp.
References CLBatchToSpaceLayer::configure(), CLKernelLibrary::get(), and arm_compute::test::validation::input.
|
delete |
Prevent instances of this class to be moved.
|
delete |
Prevent instances of this class from being copied.
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 91 of file CLBatchToSpaceLayer.cpp.
References CLScheduler::enqueue(), and CLScheduler::get().
|
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 77 of file CLBatchToSpaceLayer.cpp.
References arm_compute::test::validation::input, and CLBatchToSpaceLayerKernel::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 | Information about how the output shape is cropped after batch to space is performed |
Definition at line 82 of file CLBatchToSpaceLayer.cpp.
References arm_compute::test::validation::input, and CLBatchToSpaceLayerKernel::validate().