Compute Library
18.05
|
Interface for the kernel to perform addition between two tensors. More...
#include <NEArithmeticAdditionKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
NEArithmeticAdditionKernel () | |
Default constructor. More... | |
NEArithmeticAdditionKernel (const NEArithmeticAdditionKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEArithmeticAdditionKernel & | operator= (const NEArithmeticAdditionKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEArithmeticAdditionKernel (NEArithmeticAdditionKernel &&)=default | |
Allow instances of this class to be moved. More... | |
NEArithmeticAdditionKernel & | operator= (NEArithmeticAdditionKernel &&)=default |
Allow instances of this class to be moved. More... | |
~NEArithmeticAdditionKernel ()=default | |
Default destructor. More... | |
void | configure (const ITensor *input1, const ITensor *input2, ITensor *output, ConvertPolicy policy) |
Initialise the kernel's input, output and border mode. More... | |
void | run (const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. More... | |
BorderSize | border_size () const override |
The size of the border for that kernel. More... | |
Public Member Functions inherited from ICPPKernel | |
virtual | ~ICPPKernel ()=default |
Default destructor. More... | |
Public Member Functions inherited from IKernel | |
IKernel () | |
Constructor. More... | |
virtual | ~IKernel ()=default |
Destructor. More... | |
virtual bool | is_parallelisable () const |
Indicates whether or not the kernel is parallelisable. More... | |
const Window & | window () const |
The maximum window the kernel can be executed on. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, ConvertPolicy policy) |
Static function to check if given info will lead to a valid configuration of NEArithmeticAdditionKernel. More... | |
Interface for the kernel to perform addition between two tensors.
Definition at line 35 of file NEArithmeticAdditionKernel.h.
Default constructor.
Referenced by NEArithmeticAdditionKernel::name().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
default |
Default destructor.
Referenced by NEArithmeticAdditionKernel::name().
|
overridevirtual |
The size of the border for that kernel.
Reimplemented from IKernel.
Referenced by NEArithmeticAdditionKernel::name().
void configure | ( | const ITensor * | input1, |
const ITensor * | input2, | ||
ITensor * | output, | ||
ConvertPolicy | policy | ||
) |
Initialise the kernel's input, output and border mode.
Valid configurations (Input1,Input2) -> Output :
[in] | input1 | An input tensor. Data types supported: U8/QS8/QS16/S16/F16/F32 |
[in] | input2 | An input tensor. Data types supported: U8/QS8/QS16/S16/F16/F32 |
[out] | output | The output tensor. Data types supported: U8/QS8/QS16/S16/F16/F32. |
[in] | policy | Overflow policy. |
Referenced by NEArithmeticAdditionKernel::name().
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 38 of file NEArithmeticAdditionKernel.h.
References NEArithmeticAdditionKernel::border_size(), NEArithmeticAdditionKernel::configure(), arm_compute::test::validation::info(), NEArithmeticAdditionKernel::NEArithmeticAdditionKernel(), NEArithmeticAdditionKernel::operator=(), NEArithmeticAdditionKernel::run(), NEArithmeticAdditionKernel::validate(), IKernel::window(), and NEArithmeticAdditionKernel::~NEArithmeticAdditionKernel().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEArithmeticAdditionKernel::name().
|
default |
Allow instances of this class to be moved.
|
overridevirtual |
Execute the kernel on the passed window.
[in] | window | Region on which to execute the kernel. (Must be a region of the window returned by window()) |
[in] | info | Info about executing thread and CPU. |
Implements ICPPKernel.
Referenced by NEArithmeticAdditionKernel::name().
|
static |
Static function to check if given info will lead to a valid configuration of NEArithmeticAdditionKernel.
[in] | input1 | An input tensor. Data types supported: U8/QS8/QS16/S16/F16/F32 |
[in] | input2 | An input tensor. Data types supported: U8/QS8/QS16/S16/F16/F32 |
[in] | output | The output tensor. Data types supported: U8/QS8/QS16/S16/F16/F32. |
[in] | policy | Overflow policy. |
Referenced by NEArithmeticAdditionKernel::name().