Compute Library
 19.08
NEArithmeticAddition Class Reference

Basic function to run NEArithmeticAdditionKernel. More...

#include <NEArithmeticAddition.h>

Collaboration diagram for NEArithmeticAddition:
[legend]

Public Member Functions

void configure (ITensor *input1, ITensor *input2, ITensor *output, ConvertPolicy policy)
 Initialise the kernel's inputs, output and conversion policy. More...
 
- Public Member Functions inherited from INESimpleFunction
 INESimpleFunction ()
 Constructor. More...
 
void run () override final
 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)
 Static function to check if given info will lead to a valid configuration of NEArithmeticAddition. More...
 

Detailed Description

Basic function to run NEArithmeticAdditionKernel.

Definition at line 35 of file NEArithmeticAddition.h.

Member Function Documentation

◆ configure()

void configure ( ITensor input1,
ITensor input2,
ITensor output,
ConvertPolicy  policy 
)

Initialise the kernel's inputs, output and conversion policy.

Parameters
[in]input1First tensor input. Data types supported: U8/QASYMM8/S16/QSYMM16/F16/F32
[in]input2Second tensor input. Data types supported: U8/QASYMM8/S16/QSYMM16/F16/F32
[out]outputOutput tensor. Data types supported: U8/QASYMM8/S16/QSYMM16/F16/F32
[in]policyPolicy to use to handle overflow.

Definition at line 34 of file NEArithmeticAddition.cpp.

35 {
36  auto k = arm_compute::support::cpp14::make_unique<NEArithmeticAdditionKernel>();
37  k->configure(input1, input2, output, policy);
38  _kernel = std::move(k);
39 }

References arm_compute::test::validation::policy.

Referenced by NEFFTConvolutionLayer::configure(), NELSTMLayer::configure(), and NELSTMLayerQuantized::configure().

◆ validate()

Status validate ( const ITensorInfo input1,
const ITensorInfo input2,
const ITensorInfo output,
ConvertPolicy  policy 
)
static

Static function to check if given info will lead to a valid configuration of NEArithmeticAddition.

Parameters
[in]input1First tensor input. Data types supported: U8/QASYMM8/S16/QSYMM16/F16/F32
[in]input2Second tensor input. Data types supported: U8/QASYMM8/S16/QSYMM16/F16/F32
[in]outputOutput tensor. Data types supported: U8/SQASYMM8/S16/QSYMM16/F16/F32
[in]policyPolicy to use to handle overflow.
Returns
a status

Definition at line 40 of file NEArithmeticAddition.cpp.

41 {
42  return NEArithmeticAdditionKernel::validate(input1, input2, output, policy);
43 }
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 NEArithmeticAdditionKern...

References arm_compute::test::validation::policy, and NEArithmeticAdditionKernel::validate().

Referenced by NELSTMLayerQuantized::validate(), and NELSTMLayer::validate().


The documentation for this class was generated from the following files: