Skip to content

Commit 88548dd

Browse files
fix(strategy): fixed that old tune_cfg cannot be matched correctly in _find_tuning_history. (#1303)
1 parent cd0add0 commit 88548dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neural_compressor/strategy/strategy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def traverse(self):
228228
logger.debug("Dump current tuning configuration:")
229229
logger.debug(tune_cfg)
230230
self.q_model = self.adaptor.quantize(
231-
tune_cfg, self.model, self.calib_dataloader, self.q_func)
231+
copy.deepcopy(tune_cfg), self.model, self.calib_dataloader, self.q_func)
232232
self.algo.calib_iter = tune_cfg['calib_iteration']
233233
self.algo.q_model = self.q_model
234234
# TODO align the api to let strategy has access to pre_optimized model

0 commit comments

Comments
 (0)