Compute Library
 19.08
NEElementwiseComparisonStatic< op > Class Template Reference

Basic function to run NEComparisonOperationKernel. More...

#include <NEElementwiseOperations.h>

Collaboration diagram for NEElementwiseComparisonStatic< op >:
[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 NEComparisonOperationKernel. More...
 

Detailed Description

template<ComparisonOperation op>
class arm_compute::NEElementwiseComparisonStatic< op >

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 199 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: QASYMM8/S16/F16/S32/F32.
[in,out]input2Second tensor input. Data types supported: Same as input1.
[out]outputOutput tensor. Data types supported: U16/U32.

Definition at line 95 of file NEElementwiseOperators.cpp.

96 {
97  auto k = arm_compute::support::cpp14::make_unique<NEComparisonOperationKernel>();
98  k->configure(COP, input1, input2, output);
99  _kernel = std::move(k);
100 }

◆ 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 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.
Returns
a status

Definition at line 103 of file NEElementwiseOperators.cpp.

104 {
105  return NEComparisonOperationKernel::validate(COP, input1, input2, output);
106 }
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: