Compute Library
 19.08
CLArithmeticDivision Class Reference

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

#include <CLElementwiseOperations.h>

Collaboration diagram for CLArithmeticDivision:
[legend]

Public Member Functions

void configure (ICLTensor *input1, ICLTensor *input2, ICLTensor *output)
 Initialise the kernel's inputs, output. More...
 
- Public Member Functions inherited from ICLSimpleFunction
 ICLSimpleFunction ()
 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)
 Static function to check if given info will lead to a valid configuration of CLArithmeticDivision. More...
 

Detailed Description

Basic function to run CLSaturatedArithmeticOperationKernel for division.

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

Definition at line 99 of file CLElementwiseOperations.h.

Member Function Documentation

◆ configure()

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

Initialise the kernel's inputs, output.

Parameters
[in,out]input1First tensor input. Data types supported: F16/F32. The input tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0.
[in,out]input2Second tensor input. Same as input1. The input tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0.
[out]outputOutput tensor. Data types supported: Same as input1.

Definition at line 77 of file CLElementwiseOperations.cpp.

78 {
79  auto k = arm_compute::support::cpp14::make_unique<CLArithmeticOperationKernel>();
80  k->configure(ArithmeticOperation::DIV, input1, input2, output);
81  _kernel = std::move(k);
82  configure_border_handler(_border_handler, _kernel->border_size(), input1, input2, output);
83 }

References arm_compute::DIV.

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

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 85 of file CLElementwiseOperations.cpp.

86 {
88 }
static Status validate(ArithmeticOperation op, const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output)
Static function to check if given info will lead to a valid configuration of CLArithmeticOperationKer...

References arm_compute::DIV, and CLArithmeticOperationKernel::validate().


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