Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
1c53682c
M
mindinsight
项目概览
MindSpore
/
mindinsight
通知
7
Star
3
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看板
提交
1c53682c
编写于
6月 18, 2020
作者:
C
chenchao99
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
adapte the aicpu update
上级
83c104c4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
9 deletion
+7
-9
mindinsight/profiler/analyser/analyser.py
mindinsight/profiler/analyser/analyser.py
+3
-4
mindinsight/profiler/analyser/integrator.py
mindinsight/profiler/analyser/integrator.py
+2
-3
mindinsight/profiler/common/validator/validate.py
mindinsight/profiler/common/validator/validate.py
+2
-2
未找到文件。
mindinsight/profiler/analyser/analyser.py
浏览文件 @
1c53682c
...
...
@@ -262,9 +262,8 @@ class AicpuAnalyser(BaseAnalyser):
Raises:
ProfilerPathErrorException: If the profiling dir is invalid.
"""
_col_names
=
[
'serial_number'
,
'op_name'
,
'total_time'
,
'dispatch_time'
,
'RunV2_start'
,
'compute_start'
,
'memcpy_start'
,
'memcpy_end'
,
'RunV2_end'
]
_col_names
=
[
'serial_number'
,
'op_type'
,
'total_time'
,
'dispatch_time'
,
'run_start'
,
'run_end'
]
_file_name_aicpu_time
=
'aicpu_intermediate_{}.csv'
def
_load
(
self
):
...
...
@@ -306,4 +305,4 @@ class AicpuAnalyser(BaseAnalyser):
list[Union[str, float]], the converted data.
"""
return
[
int
(
row
[
0
]),
row
[
1
],
float
(
row
[
2
]),
float
(
row
[
3
]),
int
(
row
[
4
]),
int
(
row
[
5
])
,
int
(
row
[
6
]),
int
(
row
[
7
]),
int
(
row
[
8
])
]
int
(
row
[
5
])]
mindinsight/profiler/analyser/integrator.py
浏览文件 @
1c53682c
...
...
@@ -33,9 +33,8 @@ class Integrator:
_header_aicore_type
=
[
'op_type'
,
'execution_time'
,
'execution_frequency'
,
'percent'
]
_header_aicore_detail
=
[
'full_op_name'
,
'execution_time'
]
_header_aicpu
=
[
'serial_number'
,
'op_name'
,
'total_time'
,
'dispatch_time'
,
'RunV2_start'
,
'compute_start'
,
'memcpy_start'
,
'memcpy_end'
,
'RunV2_end'
]
_header_aicpu
=
[
'serial_number'
,
'op_type'
,
'total_time'
,
'dispatch_time'
,
'run_start'
,
'run_end'
]
def
__init__
(
self
,
profiling_dir
,
device_id
):
self
.
_profiling_dir
=
profiling_dir
...
...
mindinsight/profiler/common/validator/validate.py
浏览文件 @
1c53682c
...
...
@@ -25,8 +25,8 @@ from mindinsight.profiler.common.log import logger as log
AICORE_TYPE_COL
=
[
"op_type"
,
"execution_time"
,
"execution_frequency"
,
"precent"
]
AICORE_DETAIL_COL
=
[
"op_name"
,
"op_type"
,
"execution_time"
,
"subgraph"
,
"full_op_name"
]
AICPU_COL
=
[
"serial_number"
,
"op_
name"
,
"total_time"
,
"dispatch_time"
,
"RunV2
_start"
,
"
compute_start"
,
"memcpy_start"
,
"memcpy_end"
,
"RunV2
_end"
]
AICPU_COL
=
[
"serial_number"
,
"op_
type"
,
"total_time"
,
"dispatch_time"
,
"run
_start"
,
"
run
_end"
]
MINDDATA_PIPELINE_COL
=
[
'op_id'
,
'op_type'
,
'num_workers'
,
'output_queue_average_size'
,
'output_queue_length'
,
'output_queue_usage_rate'
,
'sample_interval'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录