Skip to content

quantization

Classes

AirFixedPointScale

Functions

from_real_multiplier classmethod
from_real_multiplier(real_multiplier: float)

Create a fixed point scale from a real multiplier.

AirQuantizationDetails

Base class for quantization details.

AirBlockwiseQuantization

Blockwise quantization details.

AirQuantizationParameters

Parameters for quantization of a tensor.

Attributes

scales property
scales: list[float]

Per-tensor or per-channel scales; raises if the tensor is not quantized.

zero_points property
zero_points: list[int]

Per-tensor or per-channel zero points; raises if the tensor is not quantized.

Functions