From 157b84adf0fc4e644c09b37cc9c634329cb46784 Mon Sep 17 00:00:00 2001 From: wtingkai <330445001@qq.com> Date: Fri, 15 Aug 2025 18:10:42 +0800 Subject: [PATCH] =?UTF-8?q?feat(OmniAdvisor):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=83=A8=E5=88=86=E8=B4=9F=E8=BD=BD=E8=B0=83=E4=BC=98=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E4=B8=BA=E7=A9=BA=E5=9C=BA=E6=99=AF=E4=B8=8B=E7=9A=84?= =?UTF-8?q?BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- omniadvisor/src/omniadvisor/interface/config_tuning.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/omniadvisor/src/omniadvisor/interface/config_tuning.py b/omniadvisor/src/omniadvisor/interface/config_tuning.py index 654a21015..0eec5bc30 100644 --- a/omniadvisor/src/omniadvisor/interface/config_tuning.py +++ b/omniadvisor/src/omniadvisor/interface/config_tuning.py @@ -150,7 +150,8 @@ def _get_next_config(load: Load, tuning_method: str) -> tuple[dict, str]: other_history = get_other_tuning_result_history(load) tuner = TransferTuning( tuning_history=tuning_result_history.to_tuning_data_list(), - other_histories=[other.to_tuning_data_list() for other in other_history] + # 可能存在负载没有调优记录或调优记录状态为empty,导致to_tuning_data_list()输出列表为空 + other_histories=[other.to_tuning_data_list() for other in other_history if other.to_tuning_data_list()] ) else: raise ValueError(f'Not supported tuning method: {tuning_method}') -- Gitee