Skip to content

Commit

Permalink
use error
Browse files Browse the repository at this point in the history
  • Loading branch information
hualxie committed Mar 4, 2025
1 parent 13d22e3 commit d207795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion olive/passes/onnx/quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def _run_for_config(
)
except Exception as e:
# quantization preprocessing will fail if the model is too large and `skip_optimization = False`
logger.warning(
logger.error(

Check warning

Code scanning / lintrunner

RUFF/G201 Warning

Logging .exception(...) should be used instead of .error(..., exc\_info=True).
See https://docs.astral.sh/ruff/rules/logging-exc-info
"Failed to run quantization preprocessing with error of %s. Retry with `skip_optimization = True`",
e,
exc_info=True,
Expand Down

0 comments on commit d207795

Please sign in to comment.