22.02
|
Basic function to run cpu::kernels::CpuCastKernel. More...
#include <NEDepthConvertLayer.h>
Public Member Functions | |
NEDepthConvertLayer () | |
Constructor. More... | |
~NEDepthConvertLayer () | |
Destructor. More... | |
NEDepthConvertLayer (const NEDepthConvertLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEDepthConvertLayer (NEDepthConvertLayer &&) | |
Default move constructor. More... | |
NEDepthConvertLayer & | operator= (const NEDepthConvertLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEDepthConvertLayer & | operator= (NEDepthConvertLayer &&) |
Default move assignment operator. More... | |
void | configure (const ITensor *input, ITensor *output, ConvertPolicy policy, uint32_t shift=0) |
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=0) |
Static function to check if given info will lead to a valid configuration of NEDepthConvertLayer. More... | |
Basic function to run cpu::kernels::CpuCastKernel.
Definition at line 39 of file NEDepthConvertLayer.h.
Constructor.
Definition at line 40 of file NEDepthConvertLayer.cpp.
References NEDepthConvertLayer::operator=(), and NEDepthConvertLayer::~NEDepthConvertLayer().
|
default |
Destructor.
Referenced by NEDepthConvertLayer::NEDepthConvertLayer().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
void configure | ( | const ITensor * | input, |
ITensor * | output, | ||
ConvertPolicy | policy, | ||
uint32_t | shift = 0 |
||
) |
Initialize the function's source, destination.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
QASYMM8 | F16, F32 |
U8 | U16, S16, S32 |
U16 | U8, U32 |
S16 | U8, S32 |
BFLOAT16 | F32 |
F16 | QASYMM8, F32 |
F32 | QASYMM8, F16, BFLOAT16 |
Input data type must be different than output data type.
[in] | input | The input tensor to convert. Data types supported: QASYMM8/U8/U16/S16/BFLOAT16/F16/F32. |
[out] | output | The output tensor. Data types supported: QASYMM8/U8/U16/S16/U32/S32/BFLOAT16/F16/F32. |
[in] | policy | Conversion policy. |
[in] | shift | (Optional) Value for down/up conversions. Must be 0 <= shift < 8. |
Definition at line 48 of file NEDepthConvertLayer.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_NULLPTR, ARM_COMPUTE_UNUSED, and arm_compute::test::validation::input.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEDepthConvertLayer::NEDepthConvertLayer().
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 68 of file NEDepthConvertLayer.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 NEDepthConvertLayer.
[in] | input | Source tensor info. Data types supported: QASYMM8/U8/U16/S16/BFLOAT16/F16/F32. |
[in] | output | Destination tensor info. Data type supported: QASYMM8/U8/U16/S16/U32/S32/BFLOAT16/F16/F32. |
[in] | policy | Conversion policy. |
[in] | shift | (Optional) Value for down/up conversions. Must be 0 <= shift < 8. |
Definition at line 62 of file NEDepthConvertLayer.cpp.
References ARM_COMPUTE_RETURN_ERROR_ON, and CpuCast::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE().