24.02.1
|
Basic function to run opencl::kernels::ClCastKernel. More...
#include <CLDepthConvertLayer.h>
Public Member Functions | |
CLDepthConvertLayer () | |
Constructor. More... | |
~CLDepthConvertLayer () | |
Destructor. More... | |
CLDepthConvertLayer (const CLDepthConvertLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLDepthConvertLayer (CLDepthConvertLayer &&) | |
Default move constructor. More... | |
CLDepthConvertLayer & | operator= (const CLDepthConvertLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLDepthConvertLayer & | operator= (CLDepthConvertLayer &&) |
Default move assignment operator. More... | |
void | configure (const ICLTensor *input, ICLTensor *output, ConvertPolicy policy, uint32_t shift) |
Initialize the function's source, destination. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output, ConvertPolicy policy, uint32_t shift) |
Initialize the function's source, destination. More... | |
void | run () override |
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, uint32_t shift) |
Static function to check if given info will lead to a valid configuration of CLDepthConvertLayer. More... | |
Basic function to run opencl::kernels::ClCastKernel.
Definition at line 39 of file CLDepthConvertLayer.h.
Constructor.
Definition at line 45 of file CLDepthConvertLayer.cpp.
|
default |
Destructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
ICLTensor * | output, | ||
ConvertPolicy | policy, | ||
uint32_t | shift | ||
) |
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. |
[in] | shift | Value for down/up conversions. Must be 0 <= shift < 8. |
Definition at line 57 of file CLDepthConvertLayer.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_LOG_PARAMS, ARM_COMPUTE_UNUSED, and arm_compute::test::validation::input.
void configure | ( | const ICLTensor * | input, |
ICLTensor * | output, | ||
ConvertPolicy | policy, | ||
uint32_t | shift | ||
) |
Initialize the function's source, destination.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
U8 | S8, U16, S16, U32, S32, F16, F32 |
U16 | U8, S8, S16, U32, S32, F16, F32 |
S16 | U8, S8, U16, U32, S32, F16, F32 |
U32 | U8, S8, U16, S16, S32, F16, F32 |
S32 | U8, S8, U16, S16, U32, F16, F32 |
F16 | U8, S8, U16, S16, U32, F32 |
F32 | U8, S8, U16, S16, U32, F16 |
Input data type must be different than output data type.
[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. |
[in] | shift | Value for down/up conversions. Must be 0 <= shift < 8. |
Definition at line 52 of file CLDepthConvertLayer.cpp.
References CLKernelLibrary::get(), and arm_compute::test::validation::input.
|
default |
Default move assignment operator.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 83 of file CLDepthConvertLayer.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, and arm_compute::test::validation::pack.
|
static |
Static function to check if given info will lead to a valid configuration of CLDepthConvertLayer.
[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. |
[in] | shift | Value for down/up conversions. Must be 0 <= shift < 8. |
Definition at line 77 of file CLDepthConvertLayer.cpp.
References ARM_COMPUTE_RETURN_ERROR_ON, arm_compute::test::validation::input, and ClCast::validate().