21.02
|
Basic function to simulate a pooling layer with the specified pooling operation. More...
#include <GCPoolingLayer.h>
Public Member Functions | |
GCPoolingLayer () | |
void | configure (IGCTensor *input, IGCTensor *output, const PoolingLayerInfo &pool_info, IGCTensor *indices=nullptr) |
Set the input and output tensors. More... | |
void | run () override final |
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 GCPoolingLayer. More... | |
Basic function to simulate a pooling layer with the specified pooling operation.
This function calls the following OpenGL ES kernels:
Definition at line 48 of file GCPoolingLayer.h.
GCPoolingLayer | ( | ) |
Definition at line 32 of file GCPoolingLayer.cpp.
void configure | ( | IGCTensor * | input, |
IGCTensor * | output, | ||
const PoolingLayerInfo & | pool_info, | ||
IGCTensor * | indices = nullptr |
||
) |
Set the input and output tensors.
[in,out] | input | Source tensor. (Written to only when padding != 0) Data types supported: 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 37 of file GCPoolingLayer.cpp.
References GCFillBorderKernel::configure(), GCTensorShiftKernel::configure(), arm_compute::CONSTANT, arm_compute::MAX, PoolingLayerInfo::pool_type, and arm_compute::REPLICATE.
|
finaloverridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 56 of file GCPoolingLayer.cpp.
References GCScheduler::dispatch(), GCScheduler::get(), and GCScheduler::memory_barrier().
|
static |
Static function to check if given info will lead to a valid configuration of GCPoolingLayer.
[in] | input | Source tensor info. Data types supported: 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 51 of file GCPoolingLayer.cpp.
References GCPoolingLayerKernel::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE().