We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b3ca94 commit a7dc300Copy full SHA for a7dc300
1 file changed
modelopt/torch/quantization/config.py
@@ -170,17 +170,6 @@ class QuantizerCfgEntry(TypedDict, total=False):
170
enable: bool | None # toggles matched quantizers on/off; independent of cfg
171
172
173
-QuantizerCfg = list[QuantizerCfgEntry]
174
-
175
176
-def _get_quant_cfg_entry(quant_cfg: QuantizerCfg, quantizer_name: str) -> QuantizerCfgEntry | None:
177
- """Get a QuantizerCfgEntry by quantizer_name in the QuantizerCfg."""
178
- for entry in reversed(quant_cfg):
179
- if entry.get("quantizer_name") == quantizer_name:
180
- return entry
181
- return None
182
183
184
def find_quant_cfg_entry_by_path(
185
quant_cfg_list: list[QuantizerCfgEntry], quantizer_name: str
186
) -> QuantizerCfgEntry:
0 commit comments