21.02
|
Basic function to run cpu::kernels::CpuSubKernel. More...
#include <NEArithmeticSubtraction.h>
Public Member Functions | |
NEArithmeticSubtraction () | |
Default Constructor. More... | |
~NEArithmeticSubtraction () | |
Default Destructor. More... | |
NEArithmeticSubtraction (const NEArithmeticSubtraction &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEArithmeticSubtraction (NEArithmeticSubtraction &&) | |
Default move constructor. More... | |
NEArithmeticSubtraction & | operator= (const NEArithmeticSubtraction &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEArithmeticSubtraction & | operator= (NEArithmeticSubtraction &&) |
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 NEArithmeticSubtraction. More... | |
Basic function to run cpu::kernels::CpuSubKernel.
This function calls the following kernels:
Definition at line 43 of file NEArithmeticSubtraction.h.
Default Constructor.
Definition at line 41 of file NEArithmeticSubtraction.cpp.
References NEArithmeticSubtraction::operator=(), and NEArithmeticSubtraction::~NEArithmeticSubtraction().
|
default |
Default Destructor.
Referenced by NEArithmeticSubtraction::NEArithmeticSubtraction().
|
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.
[in] | input1 | First tensor input. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/QSYMM16/S16/S32/F16/F32 |
[in] | input2 | Second tensor input. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/QSYMM16/S16/S32/F16/F32 |
[out] | output | Output tensor. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/QSYMM16/S16/S32/F16/F32 |
[in] | policy | Policy to use to handle overflow. Convert policy cannot be WRAP if datatype is quantized. |
[in] | act_info | (Optional) Activation layer information in case of a fused activation. Currently not supported. |
Definition at line 54 of file NEArithmeticSubtraction.cpp.
References ITensor::info().
Referenced by NELSTMLayer::configure(), and NEQLSTMLayer::configure().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEArithmeticSubtraction::NEArithmeticSubtraction().
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 63 of file NEArithmeticSubtraction.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC_0, arm_compute::ACL_SRC_1, and ITensorPack::add_tensor().
Referenced by NELSTMLayer::run(), and NEQLSTMLayer::run().
|
static |
Static function to check if given info will lead to a valid configuration of NEArithmeticSubtraction.
[in] | input1 | First tensor input. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/S32/F16/F32 |
[in] | input2 | Second tensor input. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/S32/F16/F32 |
[in] | output | Output tensor. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/S32/F16/F32 |
[in] | policy | Policy to use to handle overflow. Convert policy cannot be WRAP if datatype is quantized. |
[in] | act_info | (Optional) Activation layer information in case of a fused activation. Currently not supported. |
Definition at line 49 of file NEArithmeticSubtraction.cpp.
References CpuSub::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE(), NELSTMLayer::validate(), and NEQLSTMLayer::validate().