24.02.1
|
Basic function to run cpu::kernels::CpuArithmeticKernel for PRELU. More...
#include <NEPReluLayer.h>
Public Member Functions | |
NEPReluLayer () | |
Default Constructor. More... | |
~NEPReluLayer () | |
Default Destructor. More... | |
NEPReluLayer (const NEPReluLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEPReluLayer (NEPReluLayer &&) | |
Default move constructor. More... | |
NEPReluLayer & | operator= (const NEPReluLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEPReluLayer & | operator= (NEPReluLayer &&) |
Default move assignment operator. More... | |
void | configure (const ITensor *input, const ITensor *alpha, ITensor *output) |
Set the input and output tensor. 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 *alpha, const ITensorInfo *output) |
Static function to check if given info will lead to a valid configuration of NEPReluLayer. More... | |
Basic function to run cpu::kernels::CpuArithmeticKernel for PRELU.
Definition at line 41 of file NEPReluLayer.h.
NEPReluLayer | ( | ) |
Default Constructor.
Definition at line 42 of file NEPReluLayer.cpp.
|
default |
Default Destructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
Set the input and output tensor.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
QASYMM8 | QASYMM8 |
QASYMM8_SIGNED | QASYMM8_SIGNED |
F16 | F16 |
F32 | F32 |
[in] | input | Source tensor. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[in] | alpha | Source alpha tensor. Data types supported: same of input . |
[out] | output | Destination tensor. Data type supported: same as input |
Definition at line 49 of file NEPReluLayer.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 CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 58 of file NEPReluLayer.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 NEPReluLayer.
[in] | input | Source tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[in] | alpha | Source alpha tensor info. Data types supported: same of input . |
[in] | output | Destination tensor info. Data type supported: same as input |
Definition at line 67 of file NEPReluLayer.cpp.
References arm_compute::test::validation::input, and ClGemm::validate().