未验证 提交 c1116b65 编写于 作者: T tianshuo78520a 提交者: GitHub

Fix code style (#40344)

* fix code style

* test=document_fix

* fix code style
上级 05ff6cc5
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册