From 074e7027f61e8f45402ce5d10fe6ec3377c7ca38 Mon Sep 17 00:00:00 2001 From: hehongzhe <935062458@qq.com> Date: Fri, 5 Sep 2025 16:26:50 +0800 Subject: [PATCH] fix bug --- profiler/msprof_analyze/advisor/common/graph/graph_match.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/msprof_analyze/advisor/common/graph/graph_match.py b/profiler/msprof_analyze/advisor/common/graph/graph_match.py index 84d04eef0..86b130e56 100644 --- a/profiler/msprof_analyze/advisor/common/graph/graph_match.py +++ b/profiler/msprof_analyze/advisor/common/graph/graph_match.py @@ -297,7 +297,7 @@ def get_next_candidates(config: CandidateArgsConfig) -> List[Dict[Hashable, Hash # Find a longer backbone node nodes_with_maximum_backbone.append(query_node_id) - if nodes_with_maximum_backbone: + if not nodes_with_maximum_backbone: return [] # next_node is connected to the current backbone. next_node = max(nodes_with_maximum_backbone, key=lambda x: node_priority.get(x, 0)) -- Gitee