diff --git a/neural_compressor/strategy/basic.py b/neural_compressor/strategy/basic.py index 30c0077ad3b..4290be39b95 100644 --- a/neural_compressor/strategy/basic.py +++ b/neural_compressor/strategy/basic.py @@ -239,8 +239,8 @@ def next_tune_cfg_fp8(self): all_op_type = set() kl_op_type = set() - new_op_tuning_cfg = deepcopy(self.cur_best_tuning_cfg) - for k ,v in new_op_tuning_cfg.items(): + op_tuning_cfg = deepcopy(self.cur_best_tuning_cfg) + for k ,v in op_tuning_cfg.items(): if len(k) != 2: continue op_name, op_type = k