Compute Library
 19.08
GCArithmeticAddition Class Reference

Basic function to run GCArithmeticAdditionKernel. More...

#include <GCArithmeticAddition.h>

Collaboration diagram for GCArithmeticAddition:
[legend]

Public Member Functions

void configure (const IGCTensor *input1, const IGCTensor *input2, IGCTensor *output, ConvertPolicy policy)
 Initialise the kernel's inputs, output and convertion policy. More...
 
- Public Member Functions inherited from IGCSimpleFunction
 IGCSimpleFunction ()
 Default 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 GCArithmeticAddition. More...
 

Detailed Description

Basic function to run GCArithmeticAdditionKernel.

Note
The tensor data type for the inputs must be F16.
The function performs an arithmetic addition between two tensors.

Definition at line 39 of file GCArithmeticAddition.h.

Member Function Documentation

◆ configure()

void configure ( const IGCTensor input1,
const IGCTensor input2,
IGCTensor output,
ConvertPolicy  policy 
)

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

Parameters
[in]input1First tensor input. Data types supported: F16.
[in]input2Second tensor input. Data types supported: F16.
[out]outputOutput tensor. Data types supported: F16.
[in]policyPolicy to use to handle overflow.

Definition at line 33 of file GCArithmeticAddition.cpp.

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

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

◆ 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 GCArithmeticAddition.

Parameters
[in]input1First tensor input info. Data types supported: F16.
[in]input2Second tensor input info. Data types supported: F16.
[in]outputOutput tensor info. Data types supported: F16.
[in]policyPolicy to use to handle overflow.
Returns
a status

Definition at line 40 of file GCArithmeticAddition.cpp.

41 {
42  return GCArithmeticAdditionKernel::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 GCArithmeticAdditionKern...

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


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