Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
f95ac403
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f95ac403
编写于
7月 27, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
7月 27, 2020
浏览文件
操作
浏览文件
下载
差异文件
!484 ui display no data modification
Merge pull request !484 from 冯学峰/myr0.601
上级
cd65f251
aa20fcbf
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
29 addition
and
8 deletion
+29
-8
mindinsight/ui/src/main.js
mindinsight/ui/src/main.js
+3
-0
mindinsight/ui/src/views/train-manage/hardware-visual.vue
mindinsight/ui/src/views/train-manage/hardware-visual.vue
+4
-1
mindinsight/ui/src/views/train-manage/profiling-dashboard.vue
...insight/ui/src/views/train-manage/profiling-dashboard.vue
+18
-6
mindinsight/ui/src/views/train-manage/step-trace.vue
mindinsight/ui/src/views/train-manage/step-trace.vue
+4
-1
未找到文件。
mindinsight/ui/src/main.js
浏览文件 @
f95ac403
...
...
@@ -40,6 +40,9 @@ router.beforeEach((to, from, next) => {
store
.
commit
(
'
setIsReload
'
,
false
);
next
();
});
router
.
onError
((
error
)
=>
{
Vue
.
prototype
.
$message
.
error
(
i18n
.
messages
[
i18n
.
locale
].
public
.
netWorkError
);
});
// forbidden showing production tip
Vue
.
config
.
productionTip
=
false
;
...
...
mindinsight/ui/src/views/train-manage/hardware-visual.vue
浏览文件 @
f95ac403
...
...
@@ -295,7 +295,7 @@ limitations under the License.
</div>
</div>
<div
class=
"image-noData"
v-if=
"chipTableData.length === 0 && cpuList.length===0"
>
v-if=
"chipTableData.length === 0 && cpuList.length===0
&& initOver
"
>
<div>
<img
:src=
"require('@/assets/images/nodata.png')"
alt=
""
/>
...
...
@@ -330,6 +330,7 @@ export default {
autoUpdateTimer
:
null
,
// Automatic refresh timer
isReloading
:
false
,
// Manually refresh
legendSelected
:
{},
initOver
:
false
,
};
},
computed
:
{
...
...
@@ -417,6 +418,7 @@ export default {
init
()
{
RequestService
.
getMetricsData
().
then
(
(
res
)
=>
{
this
.
initOver
=
true
;
if
(
this
.
isReloading
)
{
this
.
$store
.
commit
(
'
setIsReload
'
,
false
);
this
.
isReloading
=
false
;
...
...
@@ -473,6 +475,7 @@ export default {
(
err
)
=>
{
this
.
chipTableData
=
[];
this
.
cpuList
=
[];
this
.
initOver
=
true
;
if
(
this
.
isReloading
)
{
this
.
$store
.
commit
(
'
setIsReload
'
,
false
);
this
.
isReloading
=
false
;
...
...
mindinsight/ui/src/views/train-manage/profiling-dashboard.vue
浏览文件 @
f95ac403
...
...
@@ -90,7 +90,7 @@ limitations under the License.
</svg>
</div>
<div
class=
"image-noData"
v-if=
"svg.noData"
>
v-if=
"svg.noData
&& svg.initOver
"
>
<div>
<img
:src=
"require('@/assets/images/nodata.png')"
alt=
""
/>
...
...
@@ -236,7 +236,7 @@ limitations under the License.
</div>
</div>
<div
class=
"image-noData"
v-if=
"processSummary.noData"
>
v-if=
"processSummary.noData
&& processSummary.initOver
"
>
<div>
<img
:src=
"require('@/assets/images/nodata.png')"
alt=
""
/>
...
...
@@ -257,7 +257,7 @@ limitations under the License.
</div>
</div>
<div
class=
"image-noData"
v-if=
"pieChart.noData && pieChart.data.length === 0"
>
v-if=
"pieChart.noData && pieChart.data.length === 0
&& pieChart.initOver
"
>
<div>
<img
:src=
"require('@/assets/images/nodata.png')"
alt=
""
/>
...
...
@@ -337,7 +337,7 @@ limitations under the License.
</div>
<div
class=
"image-noData"
v-if=
"timelineInfo.noData"
>
v-if=
"timelineInfo.noData
&& timelineInfo.initOver
"
>
<div>
<img
:src=
"require('@/assets/images/nodata.png')"
alt=
""
/>
...
...
@@ -392,6 +392,7 @@ export default {
stream_parallel
:
[
'
#01a5a7
'
,
'
#cceded
'
],
},
noData
:
false
,
initOver
:
false
,
},
trainingJobId
:
this
.
$route
.
query
.
id
,
summaryPath
:
this
.
$route
.
query
.
dir
,
...
...
@@ -403,6 +404,7 @@ export default {
noData
:
false
,
topN
:
[],
colorList
:
[
'
#6C92FA
'
,
'
#6CBFFF
'
,
'
#4EDED2
'
,
'
#7ADFA0
'
,
'
#A6DD82
'
],
initOver
:
false
,
},
timeLine
:
{
data
:
null
,
...
...
@@ -414,6 +416,7 @@ export default {
opNum
:
0
,
opTimes
:
0
,
noData
:
true
,
initOver
:
false
,
},
processSummary
:
{
noData
:
true
,
...
...
@@ -429,6 +432,7 @@ export default {
full
:
0
,
total
:
0
,
},
initOver
:
false
,
},
};
},
...
...
@@ -481,6 +485,7 @@ export default {
device_id
:
this
.
currentCard
,
};
RequestService
.
queryProcessSummary
(
params
).
then
((
resp
)
=>
{
this
.
processSummary
.
initOver
=
true
;
if
(
resp
&&
resp
.
data
)
{
const
data
=
JSON
.
parse
(
JSON
.
stringify
(
resp
.
data
));
this
.
processSummary
.
count
=
Object
.
keys
(
data
).
length
;
...
...
@@ -505,6 +510,7 @@ export default {
}
}
else
{
this
.
dealProcess
(
null
);
this
.
processSummary
.
initOver
=
true
;
}
});
},
...
...
@@ -580,6 +586,7 @@ export default {
};
RequestService
.
getProfilerOpData
(
params
)
.
then
((
res
)
=>
{
this
.
pieChart
.
initOver
=
true
;
if
(
res
&&
res
.
data
)
{
if
(
res
.
data
.
object
)
{
this
.
pieChart
.
data
=
[];
...
...
@@ -621,6 +628,7 @@ export default {
})
.
catch
(()
=>
{
this
.
pieChart
.
noData
=
true
;
this
.
pieChart
.
initOver
=
true
;
});
},
queryTrainingTrace
()
{
...
...
@@ -631,6 +639,7 @@ export default {
};
RequestService
.
queryTrainingTrace
(
params
).
then
(
(
res
)
=>
{
this
.
svg
.
initOver
=
true
;
if
(
res
.
data
&&
res
.
data
.
training_trace_graph
&&
...
...
@@ -669,6 +678,7 @@ export default {
document
.
querySelector
(
'
#trace
'
).
style
.
height
=
'
0px
'
;
this
.
svg
.
noData
=
true
;
this
.
svg
.
data
=
[];
this
.
svg
.
initOver
=
true
;
this
.
removeTrace
();
},
);
...
...
@@ -991,13 +1001,15 @@ export default {
return
new
Uint8Array
(
arr
);
},
queryTimeline
()
{
this
.
timeLine
.
waiting
=
true
;
const
params
=
{
dir
:
this
.
relativePath
,
device_id
:
this
.
currentCard
,
};
RequestService
.
queryTimlineInfo
(
params
)
.
then
((
res
)
=>
{
if
(
res
&&
res
.
data
)
{
this
.
timelineInfo
.
initOver
=
true
;
if
(
res
&&
res
.
data
&&
res
.
data
.
length
)
{
this
.
timelineInfo
.
noData
=
false
;
this
.
timelineInfo
.
totalTime
=
res
.
data
.
total_time
.
toFixed
(
4
);
this
.
timelineInfo
.
streamNum
=
res
.
data
.
num_of_streams
;
...
...
@@ -1009,8 +1021,8 @@ export default {
})
.
catch
(()
=>
{
this
.
timelineInfo
.
noData
=
true
;
this
.
timelineInfo
.
initOver
=
true
;
});
this
.
timeLine
.
waiting
=
true
;
RequestService
.
queryTimeline
(
params
)
.
then
((
res
)
=>
{
if
(
res
&&
res
.
data
&&
res
.
data
.
length
)
{
...
...
mindinsight/ui/src/views/train-manage/step-trace.vue
浏览文件 @
f95ac403
...
...
@@ -88,7 +88,7 @@ limitations under the License.
</svg>
</div>
<div
class=
"image-noData svg"
v-if=
"svg.data.length === 0"
>
v-if=
"svg.data.length === 0
&& svg.initOver
"
>
<div>
<img
:src=
"require('@/assets/images/nodata.png')"
alt=
""
/>
...
...
@@ -178,6 +178,7 @@ export default {
stream_parallel
:
[
'
#01a5a7
'
,
'
#cceded
'
],
},
noData
:
false
,
initOver
:
false
,
},
deviceId
:
0
,
radio
:
this
.
$t
(
'
profiling.lterationGap
'
),
...
...
@@ -424,6 +425,7 @@ export default {
};
RequestService
.
queryTrainingTrace
(
params
).
then
(
(
res
)
=>
{
this
.
svg
.
initOver
=
true
;
if
(
res
.
data
&&
res
.
data
.
training_trace_graph
&&
...
...
@@ -461,6 +463,7 @@ export default {
this
.
bp_end
=
'
--
'
;
this
.
svg
.
data
=
[];
this
.
svg
.
noData
=
true
;
this
.
svg
.
initOver
=
true
;
this
.
removeTrace
();
},
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录