21.02
|
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) |
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) |
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) |
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 41 of file CLBatchToSpaceLayer.h.
Default constructor.
Definition at line 37 of file CLBatchToSpaceLayer.cpp.
References CLBatchToSpaceLayer::~CLBatchToSpaceLayer().
|
delete |
Prevent instances of this class from being copied.
|
delete |
Prevent instances of this class to be moved.
|
default |
Default destructor.
Referenced by CLBatchToSpaceLayer::CLBatchToSpaceLayer().
Set the input and output tensors.
[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 CLKernelLibrary::get().
Referenced by CLBatchToSpaceLayer::configure().
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 49 of file CLBatchToSpaceLayer.cpp.
void configure | ( | const ICLTensor * | input, |
int32_t | block_shape_x, | ||
int32_t | block_shape_y, | ||
ICLTensor * | output | ||
) |
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 |
Definition at line 54 of file CLBatchToSpaceLayer.cpp.
References CLBatchToSpaceLayer::configure(), and CLKernelLibrary::get().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
int32_t | block_shape_x, | ||
int32_t | block_shape_y, | ||
ICLTensor * | output | ||
) |
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 |
Definition at line 59 of file CLBatchToSpaceLayer.cpp.
|
delete |
Prevent instances of this class from being copied.
|
delete |
Prevent instances of this class to be moved.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 74 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 64 of file CLBatchToSpaceLayer.cpp.
References CLBatchToSpaceLayerKernel::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE().
|
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 |
Definition at line 69 of file CLBatchToSpaceLayer.cpp.
References CLBatchToSpaceLayerKernel::validate().