From c1116b657ee99f8501ff065578fe8b07de97e889 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Wed, 9 Mar 2022 12:57:20 +0800 Subject: [PATCH] Fix code style (#40344) * fix code style * test=document_fix * fix code style --- python/paddle/profiler/profiler_statistic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/paddle/profiler/profiler_statistic.py b/python/paddle/profiler/profiler_statistic.py index e39871c7365..7400f21e913 100755 --- a/python/paddle/profiler/profiler_statistic.py +++ b/python/paddle/profiler/profiler_statistic.py @@ -170,9 +170,9 @@ class TimeRangeSummary: CPUTimeRange[hostnode.type].append( (hostnode.start_ns, hostnode.end_ns)) self.call_times[hostnode.type] += 1 - if hostnode.type == TracerEventType.Operator and any( - [name in hostnode.name for name in - _CommunicationOpName]): # special case, communication op + if hostnode.type == TracerEventType.Operator and any([ + name in hostnode.name for name in _CommunicationOpName + ]): # special case, communication op CPUTimeRange[TracerEventType.Communication].append( (hostnode.start_ns, hostnode.end_ns)) self.call_times[TracerEventType.Communication] += 1 -- GitLab