Compute Library
 21.02
CLDequantizationLayer Class Reference

Basic function to run CLDequantizationLayerKernel that dequantizes an input tensor. More...

#include <CLDequantizationLayer.h>

Collaboration diagram for CLDequantizationLayer:
[legend]

Public Member Functions

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...
 
- 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...
 
ICLSimpleFunctionoperator= (const ICLSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
ICLSimpleFunctionoperator= (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)
 Static function to check if given info will lead to a valid configuration of CLDequantizationLayer. More...
 

Detailed Description

Basic function to run CLDequantizationLayerKernel that dequantizes an input tensor.

Definition at line 39 of file CLDequantizationLayer.h.

Member Function Documentation

◆ configure() [1/2]

void configure ( const ICLTensor input,
ICLTensor output 
)

Set the input and output tensors.

Parameters
[in]inputSource 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]outputDestination tensor with the same dimensions of input. Data type supported: F16/F32.

Definition at line 30 of file CLDequantizationLayer.cpp.

References CLKernelLibrary::get().

Referenced by CLReduceMean::configure(), and CLLSTMLayerQuantized::configure().

31 {
32  configure(CLKernelLibrary::get().get_compile_context(), input, output);
33 }
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
void configure(const ICLTensor *input, ICLTensor *output)
Set the input and output tensors.

◆ configure() [2/2]

void configure ( const CLCompileContext compile_context,
const ICLTensor input,
ICLTensor output 
)

Set the input and output tensors.

Parameters
[in]compile_contextThe compile context to be used.
[in]inputSource 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]outputDestination tensor with the same dimensions of input. Data type supported: F16/F32.

Definition at line 35 of file CLDequantizationLayer.cpp.

36 {
37  auto k = std::make_unique<CLDequantizationLayerKernel>();
38  k->configure(compile_context, input, output);
39  _kernel = std::move(k);
40 }

◆ validate()

Status validate ( const ITensorInfo input,
const ITensorInfo output 
)
static

Static function to check if given info will lead to a valid configuration of CLDequantizationLayer.

Parameters
[in]inputInput tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/QSYMM8/QSYMM16.
[in]outputOutput tensor info. Data type supported: F16/F32.
Returns
a status

Definition at line 42 of file CLDequantizationLayer.cpp.

References CLDequantizationLayerKernel::validate().

Referenced by arm_compute::test::validation::DATA_TEST_CASE(), and CLLSTMLayerQuantized::validate().

43 {
45 }
static Status validate(const ITensorInfo *input, const ITensorInfo *output)
Static function to check if given info will lead to a valid configuration of CLDequantizationLayerKer...

The documentation for this class was generated from the following files: