Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
7abccc07
M
mindinsight
项目概览
MindSpore
/
mindinsight
通知
8
Star
4
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindinsight
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
7abccc07
编写于
6月 17, 2020
作者:
Y
yelihua
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add summary info for step trace graph and change the name.
上级
ce93cb82
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
6 deletion
+6
-6
mindinsight/backend/profiler/profile_api.py
mindinsight/backend/profiler/profile_api.py
+1
-1
mindinsight/profiler/analyser/step_trace_analyser.py
mindinsight/profiler/analyser/step_trace_analyser.py
+5
-4
tests/st/func/profiler/test_analyse.py
tests/st/func/profiler/test_analyse.py
+0
-1
未找到文件。
mindinsight/backend/profiler/profile_api.py
浏览文件 @
7abccc07
...
@@ -134,7 +134,7 @@ def get_training_trace_graph():
...
@@ -134,7 +134,7 @@ def get_training_trace_graph():
'mode'
:
'step'
,
'mode'
:
'step'
,
'step_id'
:
graph_type
'step_id'
:
graph_type
}})
}})
graph_info
[
'summary'
]
=
analyser
.
summary
return
jsonify
(
graph_info
)
return
jsonify
(
graph_info
)
...
...
mindinsight/profiler/analyser/step_trace_analyser.py
浏览文件 @
7abccc07
...
@@ -192,10 +192,11 @@ class StepTraceAnalyser(BaseAnalyser):
...
@@ -192,10 +192,11 @@ class StepTraceAnalyser(BaseAnalyser):
fp_point
=
row_info_dict
.
get
(
'fp_point'
,
0
)
fp_point
=
row_info_dict
.
get
(
'fp_point'
,
0
)
bp_point
=
row_info_dict
.
get
(
'bp_point'
,
0
)
bp_point
=
row_info_dict
.
get
(
'bp_point'
,
0
)
points
=
[
points
=
[
self
.
_construct_time_point
(
''
,
0
,
row_info_dict
.
get
(
'iteration_interval'
,
0
)),
self
.
_construct_time_point
(
self
.
_construct_time_point
(
'fp_and_bp'
,
fp_point
-
start_point
,
'iteration_interval'
,
0
,
row_info_dict
.
get
(
'iteration_interval'
,
0
)),
row_info_dict
.
get
(
'fp_and_bp'
,
0
)),
self
.
_construct_time_point
(
self
.
_construct_time_point
(
''
,
bp_point
-
start_point
,
row_info_dict
.
get
(
'tail'
,
0
)),
'fp_and_bp'
,
fp_point
-
start_point
,
row_info_dict
.
get
(
'fp_and_bp'
,
0
)),
self
.
_construct_time_point
(
'tail'
,
bp_point
-
start_point
,
row_info_dict
.
get
(
'tail'
,
0
))
]
]
return
points
return
points
...
...
tests/st/func/profiler/test_analyse.py
浏览文件 @
7abccc07
...
@@ -98,7 +98,6 @@ class TestProfilerAnalyse(TestCase):
...
@@ -98,7 +98,6 @@ class TestProfilerAnalyse(TestCase):
{
'name'
:
'stream_540_parallel_0'
,
'start'
:
118.3705
,
'duration'
:
49.281
},
{
'name'
:
'stream_540_parallel_0'
,
'start'
:
118.3705
,
'duration'
:
49.281
},
{
'name'
:
''
,
'start'
:
167.6515
,
'duration'
:
37.7294
}]
{
'name'
:
''
,
'start'
:
167.6515
,
'duration'
:
37.7294
}]
@
pytest
.
mark
.
level0
@
pytest
.
mark
.
level0
@
pytest
.
mark
.
env_single
@
pytest
.
mark
.
env_single
@
pytest
.
mark
.
platform_x86_cpu
@
pytest
.
mark
.
platform_x86_cpu
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录