Skip to content

Commit

Permalink
Update quantization.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mengniwang95 authored May 12, 2023
1 parent 06ec2d9 commit a43bbd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neural_compressor/quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ def eval_func(model):

if strategy_name == "mse_v2":
if not (conf.framework.startswith("tensorflow")\
or conf.framework == 'pytorch_fx'): # pragma: no cover
or conf.framework in ['pytorch_fx', 'onnxruntime']): # pragma: no cover
strategy_name = "basic"
logger.warning(f"MSE_v2 does not support {conf.framework} now, use basic instead.")
logger.warning("Only tensorflow, pytorch_fx is supported by MSE_v2 currently.")
logger.warning("Only tensorflow, pytorch_fx, onnxruntime is supported by MSE_v2 currently.")
assert strategy_name in STRATEGIES, "Tuning strategy {} is NOT supported".format(strategy_name)

logger.info(f"Start {strategy_name} tuning.")
Expand Down

0 comments on commit a43bbd2

Please sign in to comment.