21.02
|
Basic function to run opencl::ClPooling. 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::ClPooling.
Definition at line 40 of file CLPoolingLayer.h.
CLPoolingLayer | ( | ) |
Default Constructor.
Definition at line 41 of file CLPoolingLayer.cpp.
References CLPoolingLayer::~CLPoolingLayer().
|
default |
Default Destructor.
Referenced by CLPoolingLayer::CLPoolingLayer().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
void configure | ( | ICLTensor * | input, |
ICLTensor * | output, | ||
const PoolingLayerInfo & | pool_info, | ||
ICLTensor * | indices = nullptr |
||
) |
Set the input and output tensors.
[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().
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 52 of file CLPoolingLayer.cpp.
References ITensor::info(), and arm_compute::test::validation::input.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 67 of file CLPoolingLayer.cpp.
References arm_compute::ACL_DST_0, arm_compute::ACL_DST_1, arm_compute::ACL_SRC, and ITensorPack::add_tensor().
|
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 62 of file CLPoolingLayer.cpp.
References ClPooling::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE().