24.02.1
|
Function to perform MaxUnpooling. More...
#include <NEMaxUnpoolingLayer.h>
Public Member Functions | |
NEMaxUnpoolingLayer () | |
Constructor. More... | |
NEMaxUnpoolingLayer (const NEMaxUnpoolingLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEMaxUnpoolingLayer & | operator= (const NEMaxUnpoolingLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEMaxUnpoolingLayer (NEMaxUnpoolingLayer &&)=delete | |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
NEMaxUnpoolingLayer & | operator= (NEMaxUnpoolingLayer &&)=delete |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
~NEMaxUnpoolingLayer () | |
Default destructor. More... | |
void | configure (ITensor *input, ITensor *indices, ITensor *output, const PoolingLayerInfo &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 *indices, const ITensorInfo *output, const PoolingLayerInfo &pool_info) |
Static function to check if given info will lead to a valid configuration of NEMaxUnpoolingLayer. More... | |
Function to perform MaxUnpooling.
This function calls the following kernels:
Definition at line 42 of file NEMaxUnpoolingLayer.h.
Constructor.
Definition at line 47 of file NEMaxUnpoolingLayer.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 * | indices, | ||
ITensor * | output, | ||
const PoolingLayerInfo & | pool_info | ||
) |
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 . |
[out] | indices | The indices of the maximal values. Data type supported: U32. |
[in] | pool_info | Contains pooling operation information described in PoolingLayerInfo. |
Definition at line 51 of file NEMaxUnpoolingLayer.cpp.
References ARM_COMPUTE_LOG_PARAMS, 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 80 of file NEMaxUnpoolingLayer.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC_0, arm_compute::ACL_SRC_1, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
|
static |
Static function to check if given info will lead to a valid configuration of NEMaxUnpoolingLayer.
[in] | input | Source tensor. (Written to only when padding != 0) Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[in] | indices | The indices of the maximal values. Data type supported: U32. |
[in] | output | Destination tensor. Data types supported: Same as input . |
[in] | pool_info | Contains pooling operation information described in PoolingLayerInfo. |
Definition at line 70 of file NEMaxUnpoolingLayer.cpp.
References ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, ARM_COMPUTE_RETURN_ON_ERROR, arm_compute::test::validation::input, and CpuMaxUnpooling::validate().