21.02
|
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 68 of file NEPReluLayer.h.
NEPReluLayer | ( | ) |
Default Constructor.
Definition at line 54 of file NEPReluLayer.cpp.
References NEPReluLayer::operator=(), and NEPReluLayer::~NEPReluLayer().
|
default |
Default Destructor.
Referenced by NEPReluLayer::NEPReluLayer().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
Set the input and output tensor.
[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 62 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)
Referenced by NEPReluLayer::NEPReluLayer().
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 71 of file NEPReluLayer.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC_0, arm_compute::ACL_SRC_1, and ITensorPack::add_tensor().
|
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 80 of file NEPReluLayer.cpp.
References NEPRelu::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE().