24.02.1
|
Basic function to run opencl::ClPool2d. More...
#include <CLPoolingLayer.h>
Public Member Functions | |
CLPoolingLayer () | |
Default Constructor. More... | |
~CLPoolingLayer () | |
Default Destructor. More... | |
CLPoolingLayer (const CLPoolingLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLPoolingLayer (CLPoolingLayer &&)=default | |
Default move constructor. More... | |
CLPoolingLayer & | operator= (const CLPoolingLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLPoolingLayer & | operator= (CLPoolingLayer &&)=default |
Default move assignment operator. More... | |
void | configure (ICLTensor *input, ICLTensor *output, const PoolingLayerInfo &pool_info, ICLTensor *indices=nullptr) |
Set the input and output tensors. More... | |
void | configure (const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const PoolingLayerInfo &pool_info, ICLTensor *indices=nullptr) |
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 *output, const PoolingLayerInfo &pool_info, const ITensorInfo *indices=nullptr) |
Static function to check if given info will lead to a valid configuration of CLPoolingLayer. More... | |
Basic function to run opencl::ClPool2d.
Definition at line 39 of file CLPoolingLayer.h.
CLPoolingLayer | ( | ) |
Default Constructor.
Definition at line 42 of file CLPoolingLayer.cpp.
|
default |
Default Destructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
void configure | ( | const CLCompileContext & | compile_context, |
ICLTensor * | input, | ||
ICLTensor * | output, | ||
const PoolingLayerInfo & | pool_info, | ||
ICLTensor * | indices = nullptr |
||
) |
Set the input and output tensors.
[in] | compile_context | The compile context to be used. |
[in,out] | input | Source tensor. (Written to only when padding != 0) Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[out] | output | Destination tensor. Data types supported: Same as input . |
[in] | pool_info | Contains pooling operation information described in PoolingLayerInfo. |
[out] | indices | (optional) The indices of the maximal values. Data type supported: U32. |
Definition at line 55 of file CLPoolingLayer.cpp.
References ITensor::info(), and arm_compute::test::validation::input.
void configure | ( | ICLTensor * | input, |
ICLTensor * | output, | ||
const PoolingLayerInfo & | pool_info, | ||
ICLTensor * | indices = nullptr |
||
) |
Set the input and output tensors.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
QASYMM8 | QASYMM8 |
QASYMM8_SIGNED | QASYMM8_SIGNED |
F16 | F16 |
F32 | F32 |
[in,out] | input | Source tensor. (Written to only when padding != 0) Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[out] | output | Destination tensor. Data types supported: Same as input . |
[in] | pool_info | Contains pooling operation information described in PoolingLayerInfo. |
[out] | indices | (optional) The indices of the maximal values. Data type supported: U32. |
Definition at line 47 of file CLPoolingLayer.cpp.
References CLKernelLibrary::get(), and arm_compute::test::validation::input.
|
default |
Default move assignment operator.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 78 of file CLPoolingLayer.cpp.
References arm_compute::ACL_DST_0, arm_compute::ACL_DST_1, arm_compute::ACL_SRC, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
|
static |
Static function to check if given info will lead to a valid configuration of CLPoolingLayer.
[in] | input | Source tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[in] | output | Destination tensor info. Data types supported: Same as input . |
[in] | pool_info | Contains pooling operation information described in PoolingLayerInfo. |
[in] | indices | (optional) The indices of the maximal values. Data type supported: U32. |
Definition at line 70 of file CLPoolingLayer.cpp.
References arm_compute::test::validation::input, and ClPool2d::validate().