24.02.1
|
Basic function to simulate a pooling layer with the specified pooling operation. More...
#include <NEPoolingLayer.h>
Public Member Functions | |
NEPoolingLayer (std::shared_ptr< IMemoryManager > memory_manager=nullptr) | |
Constructor. More... | |
NEPoolingLayer (const NEPoolingLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEPoolingLayer & | operator= (const NEPoolingLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEPoolingLayer (NEPoolingLayer &&)=delete | |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
NEPoolingLayer & | operator= (NEPoolingLayer &&)=delete |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
~NEPoolingLayer () | |
Default destructor. More... | |
void | configure (ITensor *input, ITensor *output, const PoolingLayerInfo &pool_info, ITensor *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 NEPoolingLayer. More... | |
Basic function to simulate a pooling layer with the specified pooling operation.
This function calls the following kernels:
Definition at line 44 of file NEPoolingLayer.h.
NEPoolingLayer | ( | std::shared_ptr< IMemoryManager > | memory_manager = nullptr | ) |
Constructor.
Definition at line 48 of file NEPoolingLayer.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
default |
Default destructor.
void configure | ( | ITensor * | input, |
ITensor * | output, | ||
const PoolingLayerInfo & | pool_info, | ||
ITensor * | 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 53 of file NEPoolingLayer.cpp.
References arm_compute::ACL_DST_0, arm_compute::ACL_DST_1, arm_compute::ACL_SRC, ITensor::info(), and arm_compute::test::validation::input.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 75 of file NEPoolingLayer.cpp.
References ARM_COMPUTE_ERROR_ON_NULLPTR.
|
static |
Static function to check if given info will lead to a valid configuration of NEPoolingLayer.
[in] | input | Source tensor info. (Written to only when padding != 0) 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) Tensor info of the indices of the maximal values. Data type supported: U32. |
Definition at line 67 of file NEPoolingLayer.cpp.
References arm_compute::test::validation::input, and CpuPool2d::validate().