(item: tuple[DataType, NDArray])
| 1305 | |
| 1306 | @staticmethod |
| 1307 | def maybe_do_quantize(item: tuple[DataType, NDArray]) -> NDArray: |
| 1308 | dt, arr, i2_scale = item |
| 1309 | if not isinstance(dt, QuantizedDataType): |
| 1310 | return arr, i2_scale |
| 1311 | return dt.quantize(arr) |
| 1312 | |
| 1313 | @staticmethod |
| 1314 | def write_all( |