Skip to content

Commit a7dc300

Browse files
committed
revert getter
Signed-off-by: Jennifer Chen <jennifchen@nvidia.com>
1 parent 0b3ca94 commit a7dc300

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

modelopt/torch/quantization/config.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,17 +170,6 @@ class QuantizerCfgEntry(TypedDict, total=False):
170170
enable: bool | None # toggles matched quantizers on/off; independent of cfg
171171

172172

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-
184173
def find_quant_cfg_entry_by_path(
185174
quant_cfg_list: list[QuantizerCfgEntry], quantizer_name: str
186175
) -> QuantizerCfgEntry:

0 commit comments

Comments
 (0)