From bc52581011b5ad5238d653a35d86457b24847e2e Mon Sep 17 00:00:00 2001 From: sunboquan Date: Thu, 17 Aug 2023 21:44:32 +0800 Subject: [PATCH] =?UTF-8?q?step=20str=20=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communication_group/communication_group_generator.py | 2 +- profiler/cluster_analyse/prof_bean/step_trace_time_bean.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/profiler/cluster_analyse/communication_group/communication_group_generator.py b/profiler/cluster_analyse/communication_group/communication_group_generator.py index 0202ea0e5..6dabcac3b 100644 --- a/profiler/cluster_analyse/communication_group/communication_group_generator.py +++ b/profiler/cluster_analyse/communication_group/communication_group_generator.py @@ -69,7 +69,7 @@ class CommunicationGroupGenerator: def generate_p2p_communication_group(self): stage_group = {} for rank_set in self.collective_group_dict.values(): - unioned_set = {} + unioned_set = set() remove_key = [] for first_rank, stage in stage_group.items(): if UnionFind.is_connected(rank_set, stage): diff --git a/profiler/cluster_analyse/prof_bean/step_trace_time_bean.py b/profiler/cluster_analyse/prof_bean/step_trace_time_bean.py index 80f09d561..b0a3be4f5 100644 --- a/profiler/cluster_analyse/prof_bean/step_trace_time_bean.py +++ b/profiler/cluster_analyse/prof_bean/step_trace_time_bean.py @@ -31,8 +31,8 @@ class StepTraceTimeBean: return row @property - def step(self) -> float: - return float(self._data.get(self.STEP, '')) + def step(self) -> str: + return self._data.get(self.STEP, '') @property def all_headers(self) -> list: -- Gitee