diff --git a/python/paddle/profiler/profiler_statistic.py b/python/paddle/profiler/profiler_statistic.py index e39871c7365ba8eebdb33c2a1323b7459aaa52ed..7400f21e91365efeaef6a03d008691bdc837131b 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