Compute Library
 19.08
NEElementwiseDivision Class Reference

Basic function to run NEArithmeticOperationKernel for division. More...

#include <NEElementwiseOperations.h>

Collaboration diagram for NEElementwiseDivision:
[legend]

Public Member Functions

void configure (ITensor *input1, ITensor *input2, ITensor *output)
 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)
 Static function to check if given info will lead to a valid configuration of NEArithmeticOperationKernel for division. More...
 

Detailed Description

Basic function to run NEArithmeticOperationKernel for division.

Note
The tensor data type for the inputs must be F16/F32.
The function performs a squared different operation between two tensors (i.e., out[i] = in1[i] / in2[i])

Definition at line 117 of file NEElementwiseOperations.h.

Member Function Documentation

◆ configure()

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

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

Parameters
[in,out]input1First tensor input. Data types supported: F16/F32.
[in,out]input2Second tensor input. Data types supported: Same as input1.
[out]outputOutput tensor. Data types supported: Same as input1.

Definition at line 70 of file NEElementwiseOperators.cpp.

71 {
72  auto k = arm_compute::support::cpp14::make_unique<NEDivisionOperationKernel>();
73  k->configure(input1, input2, output);
74  _kernel = std::move(k);
75 }

◆ validate()

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

Static function to check if given info will lead to a valid configuration of NEArithmeticOperationKernel for division.

Parameters
[in]input1First tensor input info. Data types supported: F16/F32.
[in]input2Second tensor input info. Data types supported: Same as input1.
[in]outputOutput tensor info. Data types supported: Same as input1.
Returns
a status

Definition at line 77 of file NEElementwiseOperators.cpp.

78 {
79  return NEDivisionOperationKernel::validate(input1, input2, output);
80 }
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output)
Static function to check if given info will lead to a valid configuration of NEArithmeticOperationKer...

References NEDivisionOperationKernel::validate().


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