24.07
|
Basic function to run opencl::ClPool3d. More...
#include <CLPooling3dLayer.h>
Public Member Functions | |
CLPooling3dLayer () | |
Default Constructor. More... | |
~CLPooling3dLayer () | |
Default Destructor. More... | |
CLPooling3dLayer (const CLPooling3dLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLPooling3dLayer (CLPooling3dLayer &&)=default | |
Default move constructor. More... | |
CLPooling3dLayer & | operator= (const CLPooling3dLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLPooling3dLayer & | operator= (CLPooling3dLayer &&)=default |
Default move assignment operator. More... | |
void | configure (const ICLTensor *input, ICLTensor *output, const Pooling3dLayerInfo &pool_info) |
Set the input and output tensors. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, const Pooling3dLayerInfo &pool_info) |
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 Pooling3dLayerInfo &pool_info) |
Static function to check if given info will lead to a valid configuration of CLPooling3dLayer. More... | |
Basic function to run opencl::ClPool3d.
Definition at line 39 of file CLPooling3dLayer.h.
CLPooling3dLayer | ( | ) |
Default Constructor.
Definition at line 42 of file CLPooling3dLayer.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, |
const ICLTensor * | input, | ||
ICLTensor * | output, | ||
const Pooling3dLayerInfo & | pool_info | ||
) |
Set the input and output tensors.
[in] | compile_context | The compile context to be used. |
[in,out] | input | Source tensor. Data types supported: F16/F32/QASYMM8/QASYMM8_SIGNED. |
[out] | output | Destination tensor. Data types supported: Same as input . |
[in] | pool_info | Contains 3d pooling operation information described in Pooling3dLayerInfo. |
Definition at line 52 of file CLPooling3dLayer.cpp.
References ITensor::info(), and arm_compute::test::validation::input.
void configure | ( | const ICLTensor * | input, |
ICLTensor * | output, | ||
const Pooling3dLayerInfo & | pool_info | ||
) |
Set the input and output tensors.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
F16 | F16 |
F32 | F32 |
QASYMM8 | QASYMM8 |
QASYMM8_SIGNED | QASYMM8_SIGNED |
[in,out] | input | Source tensor. Data types supported: F16/F32/QASYMM8/QASYMM8_SIGNED. |
[out] | output | Destination tensor. Data types supported: Same as input . |
[in] | pool_info | Contains 3d pooling operation information described in Pooling3dLayerInfo. |
Definition at line 47 of file CLPooling3dLayer.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 70 of file CLPooling3dLayer.cpp.
References arm_compute::ACL_DST_0, 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 CLPooling3dLayer.
[in] | input | Source tensor info. Data types supported: F16/F32/QASYMM8/QASYMM8_SIGNED. |
[in] | output | Destination tensor info. Data types supported: Same as input . |
[in] | pool_info | Contains 3d pooling operation information described in Pooling3dLayerInfo. |
Definition at line 65 of file CLPooling3dLayer.cpp.
References arm_compute::test::validation::input, and ClPool3d::validate().