21.02
|
Basic function to run CLDepthConvertLayerKernel. More...
#include <CLCast.h>
Public Member Functions | |
void | configure (const ICLTensor *input, ICLTensor *output, ConvertPolicy policy) |
Initialize the function's source, destination. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, ConvertPolicy policy) |
Initialize the function's source, destination. More... | |
Public Member Functions inherited from ICLSimpleFunction | |
ICLSimpleFunction (CLRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
ICLSimpleFunction (const ICLSimpleFunction &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction (ICLSimpleFunction &&)=default | |
Default move constructor. More... | |
ICLSimpleFunction & | operator= (const ICLSimpleFunction &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction & | operator= (ICLSimpleFunction &&)=default |
Default move assignment operator. More... | |
~ICLSimpleFunction () | |
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, ConvertPolicy policy) |
Static function to check if given info will lead to a valid configuration of CLCast. More... | |
Basic function to run CLDepthConvertLayerKernel.
void configure | ( | const ICLTensor * | input, |
ICLTensor * | 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: U8/S8/U16/S16/U32/S32/F16/F32. |
[out] | output | The output tensor. Data types supported: U8/S8/U16/S16/U32/S32/F16/F32. |
[in] | policy | Conversion policy. |
Definition at line 32 of file CLCast.cpp.
References CLKernelLibrary::get().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
ICLTensor * | output, | ||
ConvertPolicy | policy | ||
) |
Initialize the function's source, destination.
Input data type must be different than output data type.
Valid conversions Input -> Output :
[in] | compile_context | The compile context to be used. |
[in] | input | The input tensor to convert. Data types supported: U8/S8/U16/S16/U32/S32/F16/F32. |
[out] | output | The output tensor. Data types supported: U8/S8/U16/S16/U32/S32/F16/F32. |
[in] | policy | Conversion policy. |
Definition at line 37 of file CLCast.cpp.
|
static |
Static function to check if given info will lead to a valid configuration of CLCast.
[in] | input | Source tensor info. Data types supported: U8/S8/U16/S16/U32/S32/F16/F32. |
[in] | output | Destination tensor info. Data type supported: U8/S8/U16/S16/U32/S32/F16/F32. |
[in] | policy | Conversion policy. |
Definition at line 44 of file CLCast.cpp.
References CLDepthConvertLayerKernel::validate().