Skip to content

Commit e490b85

Browse files
committed
Fix AutoQuantize cast lint
Signed-off-by: weimingc <17592131+meenchen@users.noreply.github.com>
1 parent 63b9407 commit e490b85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modelopt/torch/quantization/model_quant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ def forward_backward_step(model, batch) -> None:
543543
}
544544
# Disable all quantizers; AutoQuantize will enable the needed ones
545545
set_quantizer_by_cfg(model, [{"quantizer_name": "*", "enable": False}])
546-
search_constraints = cast(ConstraintsDict, constraints or {})
546+
search_constraints = cast("ConstraintsDict", constraints or {})
547547
searcher.search(model, search_constraints, config=search_config)
548548

549549
return model, searcher.state_dict()

0 commit comments

Comments
 (0)