21.02
|
Basic function to run CLComparisonKernel. More...
#include <CLComparison.h>
Public Member Functions | |
void | configure (ICLTensor *input1, ICLTensor *input2, ICLTensor *output, ComparisonOperation operation) |
Initialise the kernel's inputs and outputs. More... | |
void | configure (const CLCompileContext &compile_context, ICLTensor *input1, ICLTensor *input2, ICLTensor *output, ComparisonOperation operation) |
Initialise the kernel's inputs and outputs. More... | |
Public Member Functions inherited from ICLSimpleFunction | |
ICLSimpleFunction (CLRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
ICLSimpleFunction (const ICLSimpleFunction &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction (ICLSimpleFunction &&)=default | |
Default move constructor. More... | |
ICLSimpleFunction & | operator= (const ICLSimpleFunction &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction & | operator= (ICLSimpleFunction &&)=default |
Default move assignment operator. More... | |
~ICLSimpleFunction () | |
Default destructor. 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 operation) |
Static function to check if given info will lead to a valid configuration of CLComparison. More... | |
Basic function to run CLComparisonKernel.
Definition at line 38 of file CLComparison.h.
void configure | ( | ICLTensor * | input1, |
ICLTensor * | input2, | ||
ICLTensor * | output, | ||
ComparisonOperation | operation | ||
) |
Initialise the kernel's inputs and outputs.
[in] | input1 | Source tensor. Data types supported: All. The input1 tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0. |
[in] | input2 | Source tensor. Data types supported: Same as input1 . The input2 tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0. |
[out] | output | Destination tensor. Data types supported: U8. |
[out] | operation | Comparison operation to be used. |
Definition at line 33 of file CLComparison.cpp.
References CLKernelLibrary::get().
Referenced by CLComparisonStatic< COP >::configure().
void configure | ( | const CLCompileContext & | compile_context, |
ICLTensor * | input1, | ||
ICLTensor * | input2, | ||
ICLTensor * | output, | ||
ComparisonOperation | operation | ||
) |
Initialise the kernel's inputs and outputs.
[in] | compile_context | The compile context to be used. |
[in] | input1 | Source tensor. Data types supported: All. The input1 tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0. |
[in] | input2 | Source tensor. Data types supported: Same as input1 . The input2 tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0. |
[out] | output | Destination tensor. Data types supported: U8. |
[out] | operation | Comparison operation to be used. |
Definition at line 38 of file CLComparison.cpp.
References ITensorInfo::dimension(), ITensor::info(), and arm_compute::REPLICATE.
|
static |
Static function to check if given info will lead to a valid configuration of CLComparison.
[in] | input1 | Source tensor. Data types supported: All. |
[in] | input2 | Source tensor. Data types supported: Same as input1 . |
[in] | output | Destination tensor. Data types supported: U8. |
[out] | operation | Comparison operation to be used. |
Definition at line 55 of file CLComparison.cpp.
References CLComparisonKernel::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE().