24.02.1
|
Basic function to run cpu::kernels::CpuAddKernel. More...
#include <NEArithmeticAddition.h>
Public Member Functions | |
NEArithmeticAddition () | |
Default Constructor. More... | |
~NEArithmeticAddition () | |
Default Destructor. More... | |
NEArithmeticAddition (const NEArithmeticAddition &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEArithmeticAddition (NEArithmeticAddition &&) | |
Default move constructor. More... | |
NEArithmeticAddition & | operator= (const NEArithmeticAddition &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEArithmeticAddition & | operator= (NEArithmeticAddition &&) |
Default move assignment operator. More... | |
void | configure (const ITensor *input1, const ITensor *input2, ITensor *output, ConvertPolicy policy, const ActivationLayerInfo &act_info=ActivationLayerInfo()) |
Initialise the kernel's inputs, output and conversion policy. 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 *input1, const ITensorInfo *input2, const ITensorInfo *output, ConvertPolicy policy, const ActivationLayerInfo &act_info=ActivationLayerInfo()) |
Static function to check if given info will lead to a valid configuration of NEArithmeticAddition. More... | |
Basic function to run cpu::kernels::CpuAddKernel.
Definition at line 39 of file NEArithmeticAddition.h.
Default Constructor.
Definition at line 42 of file NEArithmeticAddition.cpp.
|
default |
Default Destructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
void configure | ( | const ITensor * | input1, |
const ITensor * | input2, | ||
ITensor * | output, | ||
ConvertPolicy | policy, | ||
const ActivationLayerInfo & | act_info = ActivationLayerInfo() |
||
) |
Initialise the kernel's inputs, output and conversion policy.
Valid data layouts:
Valid data type configurations:
src0 | src1 | dst |
---|---|---|
QASYMM8 | QASYMM8 | QASYMM8 |
QASYMM8_SIGNED | QASYMM8_SIGNED | QASYMM8_SIGNED |
QSYMM16 | QSYMM16 | QASYMM16 |
QSYMM16 | QSYMM16 | S32 |
U8 | U8 | U8 |
S16 | S16 | S16 |
S32 | S32 | S32 |
F16 | F16 | F16 |
F32 | F32 | F32 |
[in] | input1 | First tensor input. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/QSYMM16/F16/S32/F32 |
[in] | input2 | Second tensor input. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/QSYMM16/F16/S32/F32 |
[out] | output | Output tensor. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/QSYMM16/F16/S32/F32 |
[in] | policy | Policy to use to handle overflow. |
[in] | act_info | (Optional) Activation layer information in case of a fused activation. Currently not supported. |
Definition at line 58 of file NEArithmeticAddition.cpp.
References arm_compute::test::validation::act_info.
Referenced by NERNNLayer::configure(), NEFFTConvolutionLayer::configure(), NELSTMLayerQuantized::configure(), NELSTMLayer::configure(), NEQLSTMLayer::configure(), and arm_compute::test::validation::TEST_CASE().
|
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 71 of file NEArithmeticAddition.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.
Referenced by NEQLSTMLayer::prepare(), NERNNLayer::run(), NEFFTConvolutionLayer::run(), NELSTMLayerQuantized::run(), NELSTMLayer::run(), and NEQLSTMLayer::run().
|
static |
Static function to check if given info will lead to a valid configuration of NEArithmeticAddition.
[in] | input1 | First tensor input info. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/QSYMM16/F16/S32/F32 |
[in] | input2 | Second tensor input info. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/QSYMM16/F16/S32/F32 |
[in] | output | Output tensor info. Data types supported: U8/SQASYMM8/QASYMM8_SIGNED/S16/QSYMM16/F16/S32/F32 |
[in] | policy | Policy to use to handle overflow |
[in] | act_info | (Optional) Activation layer information in case of a fused activation. Currently not supported. |
Definition at line 49 of file NEArithmeticAddition.cpp.
References arm_compute::test::validation::act_info, and CpuAdd::validate().
Referenced by NERNNLayer::validate(), NELSTMLayerQuantized::validate(), NELSTMLayer::validate(), and NEQLSTMLayer::validate().