21.02
|
Basic function to run CLSelect. More...
#include <CLSelect.h>
Public Member Functions | |
void | configure (const ICLTensor *c, const ICLTensor *x, const ICLTensor *y, ICLTensor *output) |
Initialise the kernel's inputs and output. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *c, const ICLTensor *x, const ICLTensor *y, ICLTensor *output) |
Initialise the kernel's inputs and output. 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 *c, const ITensorInfo *x, const ITensorInfo *y, const ITensorInfo *output) |
Static function to check if given info will lead to a valid configuration of CLSelect. More... | |
Basic function to run CLSelect.
Definition at line 38 of file CLSelect.h.
void configure | ( | const ICLTensor * | c, |
const ICLTensor * | x, | ||
const ICLTensor * | y, | ||
ICLTensor * | output | ||
) |
Initialise the kernel's inputs and output.
[in] | c | Condition input tensor. Data types supported: U8. |
[in] | x | First input tensor. Data types supported: All. |
[in] | y | Second input tensor. Data types supported: Same as x |
[out] | output | Output tensor. Data types supported: Same as x . |
Definition at line 34 of file CLSelect.cpp.
References CLKernelLibrary::get().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | c, | ||
const ICLTensor * | x, | ||
const ICLTensor * | y, | ||
ICLTensor * | output | ||
) |
Initialise the kernel's inputs and output.
[in] | compile_context | The compile context to be used. |
[in] | c | Condition input tensor. Data types supported: U8. |
[in] | x | First input tensor. Data types supported: All. |
[in] | y | Second input tensor. Data types supported: Same as x |
[out] | output | Output tensor. Data types supported: Same as x . |
Definition at line 39 of file CLSelect.cpp.
|
static |
Static function to check if given info will lead to a valid configuration of CLSelect.
[in] | c | Condition input tensor. Data types supported: U8. |
[in] | x | First input tensor. Data types supported: All. |
[in] | y | Second input tensor. Data types supported: Same as x |
[in] | output | Output tensor. Data types supported: Same as x . |
Definition at line 46 of file CLSelect.cpp.
References CLSelectKernel::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE().