21.05
|
Basic function to run kernels::ClDequantizationKernel that dequantizes an input tensor. More...
#include <ClDequantization.h>
Public Member Functions | |
ClDequantization ()=default | |
Constructor. More... | |
void | configure (const CLCompileContext &compile_context, ITensorInfo *src, ITensorInfo *dst) |
Set the input and output tensors. More... | |
void | run (ITensorPack &tensors) override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from ICLOperator | |
ICLOperator (IRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
ICLOperator (const ICLOperator &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLOperator (ICLOperator &&)=default | |
Default move constructor. More... | |
ICLOperator & | operator= (const ICLOperator &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLOperator & | operator= (ICLOperator &&)=default |
Default move assignment operator. More... | |
void | prepare (ITensorPack &constants) override |
Prepare the function for executing. More... | |
MemoryRequirements | workspace () const override |
Return the memory requirements required by the workspace. More... | |
Public Member Functions inherited from IOperator | |
virtual | ~IOperator ()=default |
Destructor. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *src, const ITensorInfo *dst) |
Static function to check if given info will lead to a valid configuration of CLDequantizationLayer. More... | |
Basic function to run kernels::ClDequantizationKernel that dequantizes an input tensor.
Definition at line 36 of file ClDequantization.h.
|
default |
Constructor.
void configure | ( | const CLCompileContext & | compile_context, |
ITensorInfo * | src, | ||
ITensorInfo * | dst | ||
) |
Set the input and output tensors.
[in] | compile_context | The compile context to be used. |
[in] | src | Source tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/QSYMM8/QSYMM16. |
[out] | dst | Destination tensor info with the same dimensions of src . Data type supported: F16/F32. |
Definition at line 36 of file ClDequantization.cpp.
References arm_compute::test::validation::dst, and arm_compute::test::validation::src.
|
overridevirtual |
Run the kernels contained in the function.
[in] | tensors | Vector that contains the tensors to operate on. |
Reimplemented from ICLOperator.
Definition at line 48 of file ClDequantization.cpp.
References ARM_COMPUTE_ERROR_ON_MSG, ITensorPack::empty(), CLScheduler::enqueue_op(), and CLScheduler::get().
|
static |
Static function to check if given info will lead to a valid configuration of CLDequantizationLayer.
[in] | src | Input tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/QSYMM8/QSYMM16. |
[in] | dst | Output tensor info. Data type supported: F16/F32. |
Definition at line 43 of file ClDequantization.cpp.
References arm_compute::test::validation::dst, arm_compute::test::validation::src, and ClDequantizationKernel::validate().
Referenced by CLDequantizationLayer::validate().