Compute Library
 19.08
NEElementwiseComparison Class Reference

Basic function to run NEComparisonOperationKernel. More...

#include <NEElementwiseOperations.h>

Collaboration diagram for NEElementwiseComparison:
[legend]

Public Member Functions

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

Detailed Description

Basic function to run NEComparisonOperationKernel.

Note
The tensor data type for the inputs must be QASYMM8/S16/F16/S32/F32.
The function performs a comparison operation between two tensors.

Definition at line 170 of file NEElementwiseOperations.h.

Member Function Documentation

◆ configure()

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

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

Parameters
[in,out]input1First tensor input. Data types supported: QASYMM8/S16/F16/S32/F32.
[in,out]input2Second tensor input. Data types supported: Same as input1.
[out]outputOutput tensor. Data types supported: U16/U32.
[in]opComparison Operation to be performed.

Definition at line 108 of file NEElementwiseOperators.cpp.

109 {
110  auto k = arm_compute::support::cpp14::make_unique<NEComparisonOperationKernel>();
111  k->configure(op, input1, input2, output);
112  _kernel = std::move(k);
113 }

◆ validate()

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

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

Parameters
[in]input1First tensor input info. Data types supported: QASYMM8/S16/F16/S32/F32.
[in]input2Second tensor input info. Data types supported: Same as input1.
[in]outputOutput tensor info. Data types supported: U16/U32.
[in]opComparison Operation to be performed.
Returns
a status

Definition at line 115 of file NEElementwiseOperators.cpp.

116 {
117  return NEComparisonOperationKernel::validate(op, input1, input2, output);
118 }
static Status validate(ComparisonOperation op, const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output)
Static function to check if given info will lead to a valid configuration of NEComparisonOperationKer...

References NEComparisonOperationKernel::validate().


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