Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
b24ea3c9
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看板
提交
b24ea3c9
编写于
5月 25, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
5月 25, 2020
浏览文件
操作
浏览文件
下载
差异文件
!163 fix bugs of cache mechanism
Merge pull request !163 from liangyongxiong/cache-fix
上级
18990c70
0eae537d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
4 deletion
+18
-4
mindinsight/datavisual/data_transform/data_loader.py
mindinsight/datavisual/data_transform/data_loader.py
+1
-1
mindinsight/datavisual/data_transform/data_manager.py
mindinsight/datavisual/data_transform/data_manager.py
+6
-2
mindinsight/datavisual/processors/train_task_manager.py
mindinsight/datavisual/processors/train_task_manager.py
+11
-1
未找到文件。
mindinsight/datavisual/data_transform/data_loader.py
浏览文件 @
b24ea3c9
...
...
@@ -55,7 +55,7 @@ class DataLoader:
Get events data from log file.
Returns:
Optional[EventsData], None or
events data.
EventsData, indiciates
events data.
"""
return
self
.
_loader
.
get_events_data
()
...
...
mindinsight/datavisual/data_transform/data_manager.py
浏览文件 @
b24ea3c9
...
...
@@ -618,7 +618,7 @@ class _DetailCacheManager(_BaseCacheManager):
tag (str): The tag name.
Returns:
NamedTuple, the t
uple format is `collections.namedtuple('_Tensor', ['wall_time', 'event_step', 'value'])`.
list, the NameT
uple format is `collections.namedtuple('_Tensor', ['wall_time', 'event_step', 'value'])`.
the value will contain the given tag data.
"""
...
...
@@ -627,13 +627,17 @@ class _DetailCacheManager(_BaseCacheManager):
raise
TrainJobNotExistError
(
"Can not find the given train job in cache."
)
data_loader
=
loader_pool
[
train_id
].
data_loader
events_data
=
data_loader
.
get_events_data
()
tensors
=
[]
try
:
events_data
=
data_loader
.
get_events_data
()
tensors
=
events_data
.
tensors
(
tag
)
except
KeyError
:
error_msg
=
"Can not find any data in this train job by given tag."
raise
ParamValueError
(
error_msg
)
except
AttributeError
:
logger
.
debug
(
"Train job %r has been deleted or it has not loaded data, "
"and set tags to empty list."
,
train_id
)
return
tensors
...
...
mindinsight/datavisual/processors/train_task_manager.py
浏览文件 @
b24ea3c9
...
...
@@ -116,7 +116,17 @@ class TrainTaskManager(BaseProcessor):
profiler_dir
=
basic_info
.
profiler_dir
,
cache_status
=
train_job
.
cache_status
.
value
,
)
plugins
=
self
.
get_plugins
(
train_id
)
if
train_job
.
cache_status
==
CacheStatus
.
CACHED
:
plugins
=
self
.
get_plugins
(
train_id
)
else
:
plugins
=
dict
(
plugins
=
{
'graph'
:
[],
'scalar'
:
[],
'image'
:
[],
'histogram'
:
[],
})
train_job_item
.
update
(
plugins
)
train_jobs
.
append
(
train_job_item
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录