(item: tuple[DataType, NDArray])
| 1236 | |
| 1237 | @staticmethod |
| 1238 | def maybe_do_quantize(item: tuple[DataType, NDArray]) -> NDArray: |
| 1239 | dt, arr, i2_scale = item |
| 1240 | if not isinstance(dt, QuantizedDataType): |
| 1241 | return arr, i2_scale |
| 1242 | return dt.quantize(arr) |
| 1243 | |
| 1244 | @staticmethod |
| 1245 | def write_all( |