module documentation
Normalize calibration-domain, dataset, and local ZIP inputs.
| Class | |
Normalized calibration selection used by hosted conversion. |
| Function | is |
Return whether a path points to a local quantization zip file. |
| Function | normalize |
Normalize quantization input into a structured representation. |
def normalize_quantization_input(quantization_data:
QuantizationData | PathType | None) -> NormalizedQuantizationInput:
¶
Normalize quantization input into a structured representation.
| Parameters | |
quantizationQuantizationData | PathType | None | Quantization input provided as a predefined domain, dataset ID, local .zip path, or None. |
| Returns | |
NormalizedQuantizationInput | A normalized quantization input record describing the resolved value. |
| Raises | |
ValueError | If the value is unsupported or incomplete. |
FileNotFoundError | If a local quantization zip path does not exist. |