We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc82841 commit b110649Copy full SHA for b110649
optimum/exporters/executorch/quantization.py
@@ -27,8 +27,8 @@ def quantize_model_(
27
return
28
29
# TODO: Update torchao to use 0.11.0 once released
30
- if parse(torchao.__version__) < parse("0.11.0.dev0"):
31
- raise RuntimeError("Quantization requires torchao >= 0.11.0. Please upgrade torchao.")
+ if parse(torchao.__version__) < "0.11.0":
+ raise RuntimeError(f"Quantization requires torchao >= 0.11.0 (current is {torchao.__version__}). Please upgrade torchao.")
32
33
from torchao.quantization.granularity import PerAxis, PerGroup
34
from torchao.quantization.quant_api import (
0 commit comments