Skip to content
heliaAOT
API Reference
HELIA HUB

quantization

Machine-readable model

class

Fixed-point form of a real-valued rescale factor.

helia_aot/air/quantization.py:115

AirFixedPointScale()

Fixed-point form of a real-valued rescale factor.

Provisional: importable, but outside the compatibility promise; a minor release can change or remove it.

The pair reproduces a real multiplier as x * real ~ (x * multiplier) >> (31 - shift), where multiplier is a Q31 value (see quantize_multiplier). Following the CMSIS-NN convention, a positive shift is applied as a left shift before the Q31 multiply and a negative one as a right shift after it.

class

Blockwise quantization details.

helia_aot/air/quantization.py:147

AirBlockwiseQuantization()

Blockwise quantization details.

Provisional: importable, but outside the compatibility promise; a minor release can change or remove it.

class

Parameters for quantization of a tensor.

helia_aot/air/quantization.py:156

AirQuantizationParameters()

Parameters for quantization of a tensor.

Provisional: importable, but outside the compatibility promise; a minor release can change or remove it.