24.02.1
|
Basic function to run opencl::ClDequantize that dequantizes an input tensor. More...
#include <CLDequantizationLayer.h>
Public Member Functions | |
CLDequantizationLayer () | |
Default Constructor. More... | |
~CLDequantizationLayer () | |
Default Destructor. More... | |
CLDequantizationLayer (const CLDequantizationLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLDequantizationLayer (CLDequantizationLayer &&)=default | |
Default move constructor. More... | |
CLDequantizationLayer & | operator= (const CLDequantizationLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLDequantizationLayer & | operator= (CLDequantizationLayer &&)=default |
Default move assignment operator. More... | |
void | configure (const ICLTensor *input, ICLTensor *output) |
Set the input and output tensors. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output) |
Set the input and output tensors. 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) |
Static function to check if given info will lead to a valid configuration of CLDequantizationLayer. More... | |
Basic function to run opencl::ClDequantize that dequantizes an input tensor.
Definition at line 40 of file CLDequantizationLayer.h.
Default Constructor.
Definition at line 43 of file CLDequantizationLayer.cpp.
|
default |
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 | ||
) |
Set the input and output tensors.
[in] | compile_context | The compile context to be used. |
[in] | input | Source tensor with at least 3 dimensions. The dimensions over the third will be interpreted as batches. Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/QSYMM8/QSYMM16. |
[out] | output | Destination tensor with the same dimensions of input. Data type supported: F16/F32. |
Definition at line 53 of file CLDequantizationLayer.cpp.
References ARM_COMPUTE_LOG_PARAMS, ITensor::info(), and arm_compute::test::validation::input.
Set the input and output tensors.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
QASYMM8 | F16, F32 |
QASYMM8_SIGNED | F16, F32 |
QSYMM8_PER_CHANNEL | F16, F32 |
QSYMM8 | F16, F32 |
QSYMM16 | F16, F32 |
[in] | input | Source tensor with at least 3 dimensions. The dimensions over the third will be interpreted as batches. Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/QSYMM8/QSYMM16. |
[out] | output | Destination tensor with the same dimensions of input. Data type supported: F16/F32. |
Definition at line 48 of file CLDequantizationLayer.cpp.
References CLKernelLibrary::get(), and arm_compute::test::validation::input.
Referenced by CLReduceMean::configure(), and CLLSTMLayerQuantized::configure().
|
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 70 of file CLDequantizationLayer.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
Referenced by CLReduceMean::run(), and CLLSTMLayerQuantized::run().
|
static |
Static function to check if given info will lead to a valid configuration of CLDequantizationLayer.
[in] | input | Input tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/QSYMM8/QSYMM16. |
[in] | output | Output tensor info. Data type supported: F16/F32. |
Definition at line 65 of file CLDequantizationLayer.cpp.
References arm_compute::test::validation::input, and ClDequantize::validate().
Referenced by CLGenerateProposalsLayer::validate(), and CLLSTMLayerQuantized::validate().