21.02
|
Basic function to run NEDepthConvertLayerKernel. More...
#include <NECast.h>
Public Member Functions | |
void | configure (ITensor *input, ITensor *output, ConvertPolicy policy) |
Initialize the function's source, destination. 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 (ITensorInfo *input, ITensorInfo *output, ConvertPolicy policy) |
Static function to check if given info will lead to a valid configuration of NECast. More... | |
Basic function to run NEDepthConvertLayerKernel.
This function ignores the scale and zeroPoint of quanized tensors,so QASYMM8 input is treated as uint8 values.
void configure | ( | ITensor * | input, |
ITensor * | output, | ||
ConvertPolicy | policy | ||
) |
Initialize the function's source, destination.
Input data type must be different than output data type.
Valid conversions Input -> Output :
[in] | input | The input tensor to convert. Data types supported: QASYMM8_SIGNED/QASYMM8/U8/U16/S16/F16/S32/F32. |
[out] | output | The output tensor. Data types supported: QASYMM8_SIGNED/QASYMM8/U8/S8/U16/S16/U32/S32/BFLOAT16/F16/F32. |
[in] | policy | Conversion policy. |
Definition at line 34 of file NECast.cpp.
|
static |
Static function to check if given info will lead to a valid configuration of NECast.
[in] | input | Source tensor info. Data types supported: QASYMM8_SIGNED/QASYMM8/U8/U16/S16/F16/S32/F32. |
[in] | output | Destination tensor info. Data type supported: QASYMM8_SIGNED/QASYMM8/U8/S8/U16/S16/U32/S32/BFLOAT16/F16/F32. |
[in] | policy | Conversion policy. |
Definition at line 41 of file NECast.cpp.
References NEDepthConvertLayerKernel::validate().