21.02
|
Basic function to run NEThresholdKernel. More...
#include <NEThreshold.h>
Public Member Functions | |
void | configure (const ITensor *input, ITensor *output, const ThresholdKernelInfo &info) |
Initialise the function's source, destination, thresholds and threshold type. 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... | |
INESimpleFunctionNoBorder & | operator= (const INESimpleFunctionNoBorder &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INESimpleFunctionNoBorder & | operator= (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 *input, const ITensorInfo *output, const ThresholdKernelInfo &info) |
Static function to check if given info will lead to a valid configuration of NEThreshold. More... | |
Basic function to run NEThresholdKernel.
Definition at line 44 of file NEThreshold.h.
void configure | ( | const ITensor * | input, |
ITensor * | output, | ||
const ThresholdKernelInfo & | info | ||
) |
Initialise the function's source, destination, thresholds and threshold type.
[in] | input | First tensor input. Data type supported: U8. |
[out] | output | Output tensor. Data type supported: U8. |
[in] | info | Threshold descriptor |
Definition at line 32 of file NEThreshold.cpp.
|
static |
Static function to check if given info will lead to a valid configuration of NEThreshold.
[in] | input | First tensor input. Data type supported: U8. |
[in] | output | Output tensor. Data type supported: U8. |
[in] | info | Threshold descriptor. |
Definition at line 39 of file NEThreshold.cpp.
References NEThresholdKernel::validate().