qualia_codegen_core.Quantizer module
- class qualia_codegen_core.Quantizer.Quantizer(width: int)[source]
Bases:
object
- quantize_array_with_scale_factor(arr: ndarray[tuple[int, ...], dtype[floating[Any]]] | ndarray[tuple[int, ...], dtype[integer[Any]]], scale_factor: int, round_mode: RoundMode) ndarray[tuple[int, ...], dtype[floating[Any]]] | ndarray[tuple[int, ...], dtype[integer[Any]]] | None [source]