Compute Library
 19.11
CLQuantization Struct Reference

OpenCL quantization data. More...

#include <CLTypes.h>

Collaboration diagram for CLQuantization:
[legend]

Public Member Functions

 CLQuantization ()
 Default Constructor. More...
 
 CLQuantization (const ICLFloatArray *scale, const ICLInt32Array *offset)
 Constructor. More...
 

Data Fields

const ICLFloatArrayscale
 Quantization scale array. More...
 
const ICLInt32Arrayoffset
 Quantization offset array. More...
 

Detailed Description

OpenCL quantization data.

Definition at line 59 of file CLTypes.h.

Constructor & Destructor Documentation

◆ CLQuantization() [1/2]

CLQuantization ( )
inline

Default Constructor.

Definition at line 62 of file CLTypes.h.

63  : scale(nullptr), offset(nullptr) {};
const ICLInt32Array * offset
Quantization offset array.
Definition: CLTypes.h:73
const ICLFloatArray * scale
Quantization scale array.
Definition: CLTypes.h:70

◆ CLQuantization() [2/2]

CLQuantization ( const ICLFloatArray scale,
const ICLInt32Array offset 
)
inline

Constructor.

Parameters
[in]scaleOpenCL scale array
[in]offsetOpenCL offset array

Definition at line 69 of file CLTypes.h.

70  : scale(scale), offset(offset) {};
const ICLInt32Array * offset
Quantization offset array.
Definition: CLTypes.h:73
const ICLFloatArray * scale
Quantization scale array.
Definition: CLTypes.h:70

Field Documentation

◆ offset

const ICLInt32Array* offset

Quantization offset array.

Definition at line 73 of file CLTypes.h.

◆ scale

const ICLFloatArray* scale

Quantization scale array.

Definition at line 70 of file CLTypes.h.

Referenced by CLDequantizationLayerKernel::run().


The documentation for this struct was generated from the following file: