Compute Library
 21.02
NESelect Class Reference

Basic function to run NESelect. More...

#include <NESelect.h>

Collaboration diagram for NESelect:
[legend]

Public Member Functions

void configure (const ITensor *c, const ITensor *x, const ITensor *y, ITensor *output)
 Initialise the kernel's inputs and output. More...
 
- Public Member Functions inherited from INESimpleFunctionNoBorder
 INESimpleFunctionNoBorder (IRuntimeContext *ctx=nullptr)
 Constructor. More...
 
 INESimpleFunctionNoBorder (const INESimpleFunctionNoBorder &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 INESimpleFunctionNoBorder (INESimpleFunctionNoBorder &&)=default
 Default move constructor. More...
 
INESimpleFunctionNoBorderoperator= (const INESimpleFunctionNoBorder &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
INESimpleFunctionNoBorderoperator= (INESimpleFunctionNoBorder &&)=default
 Default move assignment operator. More...
 
 ~INESimpleFunctionNoBorder ()
 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 NESelect. More...
 

Detailed Description

Basic function to run NESelect.

Definition at line 37 of file NESelect.h.

Member Function Documentation

◆ configure()

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

Initialise the kernel's inputs and output.

Parameters
[in]cCondition input tensor. Data types supported: U8.
[in]xFirst input tensor. Data types supported: All.
[in]ySecond input tensor. Data types supported: Same as x
[out]outputOutput tensor. Data types supported: Same as x.

Definition at line 31 of file NESelect.cpp.

32 {
33  auto k = std::make_unique<NESelectKernel>();
34  k->configure(c, x, y, output);
35  _kernel = std::move(k);
36 }

◆ 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 NESelect.

Parameters
[in]cCondition input tensor. Data types supported: U8.
[in]xFirst input tensor. Data types supported: All.
[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 38 of file NESelect.cpp.

References NESelectKernel::validate().

39 {
40  return NESelectKernel::validate(c, x, y, output);
41 }
static Status validate(const ITensorInfo *c, const ITensorInfo *x, const ITensorInfo *y, const ITensorInfo *output)
Validate the argument passed to the kernel.

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