21.05
|
#include <CpuElementwiseKernel.h>
Public Member Functions | |
CpuComparisonKernel ()=default | |
Default constructor. More... | |
void | configure (ComparisonOperation op, const ITensorInfo *src0, const ITensorInfo *src1, ITensorInfo *dst) |
Configure kernel. More... | |
Public Member Functions inherited from CpuElementwiseKernel | |
const char * | name () const override |
Name of the kernel. More... | |
CpuElementwiseKernel ()=default | |
ARM_COMPUTE_DISALLOW_COPY_ALLOW_MOVE (CpuElementwiseKernel) | |
void | run_op (ITensorPack &tensors, const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. More... | |
Public Member Functions inherited from ICPPKernel | |
virtual | ~ICPPKernel ()=default |
Default destructor. More... | |
virtual void | run (const Window &window, const ThreadInfo &info) |
Execute the kernel on the passed window. More... | |
virtual void | run_nd (const Window &window, const ThreadInfo &info, const Window &thread_locator) |
legacy compatibility layer for implemantions which do not support thread_locator In these cases we simply narrow the interface down the legacy version More... | |
Public Member Functions inherited from IKernel | |
IKernel () | |
Constructor. More... | |
virtual | ~IKernel ()=default |
Destructor. More... | |
virtual bool | is_parallelisable () const |
Indicates whether or not the kernel is parallelisable. More... | |
virtual BorderSize | border_size () const |
The size of the border for that kernel. More... | |
const Window & | window () const |
The maximum window the kernel can be executed on. More... | |
bool | is_window_configured () const |
Function to check if the embedded window of this kernel has been configured. More... | |
Static Public Member Functions | |
static Status | validate (ComparisonOperation op, const ITensorInfo *src0, const ITensorInfo *src1, const ITensorInfo *dst) |
Static function to check if given info will lead to a valid configuration of cpu::kernels::CpuComparisonKernel. More... | |
Additional Inherited Members | |
Public Types inherited from CpuElementwiseKernel | |
using | ElementwiseFunction = void(const ITensor *, const ITensor *, ITensor *, const Window &) |
Common signature for all the specialised arithmetic functions. More... | |
Definition at line 193 of file CpuElementwiseKernel.h.
|
default |
Default constructor.
void configure | ( | ComparisonOperation | op, |
const ITensorInfo * | src0, | ||
const ITensorInfo * | src1, | ||
ITensorInfo * | dst | ||
) |
Configure kernel.
Comparison operators (equal, not equal, less than, greater than, less than or equal, greater than or equal)
[in] | op | Comparison operation to be executed. |
[in] | src0 | First tensor input info. Data types supported: QASYMM8/QASYMM8_SIGNED/S16/F16/S32/F32. |
[in] | src1 | Second tensor input info. Data types supported: Same as src0 . |
[out] | dst | Output tensor info. Data types supported: U8. |
Definition at line 301 of file CpuElementwiseKernel.cpp.
References ARM_COMPUTE_ERROR_THROW_ON, and arm_compute::test::validation::dst.
|
static |
Static function to check if given info will lead to a valid configuration of cpu::kernels::CpuComparisonKernel.
[in] | op | Comparison operation to be executed. |
[in] | src0 | First tensor input info. Data types supported: QASYMM8/QASYMM8_SIGNED/S16/F16/S32/F32. |
[in] | src1 | Second tensor input info. Data types supported: Same as src0 . |
[in] | dst | Output tensor info. Data types supported: U8. |
Definition at line 319 of file CpuElementwiseKernel.cpp.
References ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, ARM_COMPUTE_RETURN_ON_ERROR, ARM_COMPUTE_UNUSED, and arm_compute::test::validation::dst.
Referenced by CpuElementwiseComparison::validate(), and CpuElementwiseComparisonStatic< op >::validate().