neural_compressor.strategy.basic
¶
The basic tuning strategy.
Module Contents¶
Classes¶
The basic tuning strategy. |
- class neural_compressor.strategy.basic.BasicTuneStrategy(model, conf, q_dataloader=None, q_func=None, eval_dataloader=None, eval_func=None, resume=None, q_hooks=None)¶
Bases:
neural_compressor.strategy.strategy.TuneStrategy
The basic tuning strategy.
- next_tune_cfg()¶
Generate and yield the next tuning config with below order.
OP Type Wise Tuning
Fallback OP One by One
Fallback Multiple OPs Accumulated
- Yields:
tune_config (dict) – A dict containing the tuning configuration for quantization.