Compute Library
 21.02
NEThreshold Class Reference

Basic function to run NEThresholdKernel. More...

#include <NEThreshold.h>

Collaboration diagram for NEThreshold:
[legend]

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...
 
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 *input, const ITensorInfo *output, const ThresholdKernelInfo &info)
 Static function to check if given info will lead to a valid configuration of NEThreshold. More...
 

Detailed Description

Basic function to run NEThresholdKernel.

Deprecated:
This function is deprecated and is intended to be removed in 21.05 release

Definition at line 44 of file NEThreshold.h.

Member Function Documentation

◆ configure()

void configure ( const ITensor input,
ITensor output,
const ThresholdKernelInfo info 
)

Initialise the function's source, destination, thresholds and threshold type.

Parameters
[in]inputFirst tensor input. Data type supported: U8.
[out]outputOutput tensor. Data type supported: U8.
[in]infoThreshold descriptor

Definition at line 32 of file NEThreshold.cpp.

33 {
34  auto k = std::make_unique<NEThresholdKernel>();
35  k->configure(input, output, info);
36  _kernel = std::move(k);
37 }
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)

◆ validate()

Status validate ( const ITensorInfo input,
const ITensorInfo output,
const ThresholdKernelInfo info 
)
static

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

Parameters
[in]inputFirst tensor input. Data type supported: U8.
[in]outputOutput tensor. Data type supported: U8.
[in]infoThreshold descriptor.
Returns
A status, containing an error code in case of failure

Definition at line 39 of file NEThreshold.cpp.

References NEThresholdKernel::validate().

40 {
41  return NEThresholdKernel::validate(input, output, info);
42 }
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 NEThresholdKernel.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)

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