23.08
|
Basic function to run cpu::kernels::CpuComparisonKernel. More...
#include <NEElementwiseOperations.h>
Public Member Functions | |
NEElementwiseComparison () | |
Default Constructor. More... | |
~NEElementwiseComparison () | |
Default Destructor. More... | |
NEElementwiseComparison (const NEElementwiseComparison &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEElementwiseComparison (NEElementwiseComparison &&) | |
Default move constructor. More... | |
NEElementwiseComparison & | operator= (const NEElementwiseComparison &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEElementwiseComparison & | operator= (NEElementwiseComparison &&) |
Default move assignment operator. More... | |
void | configure (ITensor *input1, ITensor *input2, ITensor *output, ComparisonOperation op) |
Initialise the kernel's inputs, output and conversion policy. More... | |
void | run () override |
Run the kernels contained in the function. More... | |
![]() | |
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 cpu::kernels::CpuComparisonKernel. More... | |
Basic function to run cpu::kernels::CpuComparisonKernel.
Definition at line 334 of file NEElementwiseOperations.h.
Default Constructor.
Definition at line 294 of file NEElementwiseOperations.cpp.
|
default |
Default Destructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
void configure | ( | ITensor * | input1, |
ITensor * | input2, | ||
ITensor * | output, | ||
ComparisonOperation | op | ||
) |
Initialise the kernel's inputs, output and conversion policy.
Valid data layouts:
Valid data type configurations:
src0 | src1 | dst |
---|---|---|
QASYMM8 | QASYMM8 | U8 |
QASYMM8_SIGNED | QASYMM8_SIGNED | U8 |
S32 | S32 | U8 |
U8 | U8 | U8 |
S16 | S16 | U8 |
F16 | F16 | U8 |
F32 | F32 | U8 |
[in,out] | input1 | First tensor input. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/F16/S32/F32. |
[in,out] | input2 | Second tensor input. Data types supported: Same as input1 . |
[out] | output | Output tensor. Data types supported: U8. |
[in] | op | Comparison Operation to be performed. |
Definition at line 302 of file NEElementwiseOperations.cpp.
References ITensor::info().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 316 of file NEElementwiseOperations.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC_0, arm_compute::ACL_SRC_1, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
|
static |
Static function to check if given info will lead to a valid configuration of cpu::kernels::CpuComparisonKernel.
[in] | input1 | First tensor input info. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/F16/S32/F32. |
[in] | input2 | Second tensor input info. Data types supported: Same as input1 . |
[in] | output | Output tensor info. Data types supported: U8. |
[in] | op | Comparison Operation to be performed. |
Definition at line 311 of file NEElementwiseOperations.cpp.
References CpuElementwiseComparison::validate().