Compute Library
 19.08
CLSelect Class Reference

Basic function to run CLSelect. More...

#include <CLSelect.h>

Collaboration diagram for CLSelect:
[legend]

Public Member Functions

void configure (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 ()
 Default 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 *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...
 

Detailed Description

Basic function to run CLSelect.

Definition at line 37 of file CLSelect.h.

Member Function Documentation

◆ configure()

void configure ( const ICLTensor c,
const ICLTensor x,
const ICLTensor y,
ICLTensor output 
)

Initialise the kernel's inputs and output.

Parameters
[in]cCondition input tensor. Data types supported: U8.
[in]xFirst input tensor. Data types supported: U8/S8/QASYMM8/U16/S16/U32/S32/F16/F32.
[in]ySecond input tensor. Data types supported: Same as x
[out]outputOutput tensor. Data types supported: Same as x.

Definition at line 34 of file CLSelect.cpp.

35 {
36  auto k = arm_compute::support::cpp14::make_unique<CLSelectKernel>();
37  k->configure(c, x, y, output);
38  _kernel = std::move(k);
39 }

Referenced by arm_compute::test::validation::DATA_TEST_CASE().

◆ validate()

Status validate ( const ITensorInfo c,
const ITensorInfo x,
const ITensorInfo y,
const ITensorInfo output 
)
static

Static function to check if given info will lead to a valid configuration of CLSelect.

Parameters
[in]cCondition input tensor. Data types supported: U8.
[in]xFirst input tensor. Data types supported: U8/S8/QASYMM8/U16/S16/U32/S32/F16/F32.
[in]ySecond input tensor. Data types supported: Same as x
[in]outputOutput tensor. Data types supported: Same as x.
Returns
a status

Definition at line 41 of file CLSelect.cpp.

42 {
43  return CLSelectKernel::validate(c, x, y, output);
44 }
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 CLSelectKernel.

References CLSelectKernel::validate().


The documentation for this class was generated from the following files: