Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
781309a4
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看板
提交
781309a4
编写于
5月 30, 2020
作者:
X
xiayifan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
code optimization
上级
954d0751
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
38 addition
and
21 deletion
+38
-21
mindinsight/ui/src/views/train-manage/graph.vue
mindinsight/ui/src/views/train-manage/graph.vue
+1
-1
mindinsight/ui/src/views/train-manage/profiler.vue
mindinsight/ui/src/views/train-manage/profiler.vue
+9
-3
mindinsight/ui/src/views/train-manage/training-dashboard.vue
mindinsight/ui/src/views/train-manage/training-dashboard.vue
+28
-17
未找到文件。
mindinsight/ui/src/views/train-manage/graph.vue
浏览文件 @
781309a4
...
@@ -2989,7 +2989,7 @@ export default {
...
@@ -2989,7 +2989,7 @@ export default {
padding
:
0
;
padding
:
0
;
}
}
#inside-box
{
#inside-box
{
background-color
:
#
c0d3ff
;
background-color
:
#
5b88f1
;
position
:
absolute
;
position
:
absolute
;
/* Transparency */
/* Transparency */
opacity
:
0
.3
;
opacity
:
0
.3
;
...
...
mindinsight/ui/src/views/train-manage/profiler.vue
浏览文件 @
781309a4
...
@@ -121,6 +121,7 @@
...
@@ -121,6 +121,7 @@
<el-table
v-show=
"statisticType === 1 && opAllTypeList.opDetailCol && opAllTypeList.opDetailCol.length"
<el-table
v-show=
"statisticType === 1 && opAllTypeList.opDetailCol && opAllTypeList.opDetailCol.length"
:data=
"opAllTypeList.opDetailList"
:data=
"opAllTypeList.opDetailList"
stripe
stripe
ref=
"opAllTable"
width=
"100%"
width=
"100%"
height=
"calc(100% - 114px)"
height=
"calc(100% - 114px)"
@
cell-click=
"showInfoDetail"
@
cell-click=
"showInfoDetail"
...
@@ -529,13 +530,18 @@ export default {
...
@@ -529,13 +530,18 @@ export default {
if
(
res
&&
res
.
data
)
{
if
(
res
&&
res
.
data
)
{
this
.
formatterDetailData
(
row
,
res
.
data
);
this
.
formatterDetailData
(
row
,
res
.
data
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
const
item
=
this
.
$refs
[
'
expandChild
'
];
let
item
=
null
;
if
(
item
)
{
if
(
this
.
statisticType
)
{
item
=
this
.
$refs
[
'
opAllTable
'
];
}
else
{
item
=
this
.
$refs
[
'
expandChild
'
];
this
.
curActiveRow
=
{
this
.
curActiveRow
=
{
rowItem
:
row
,
rowItem
:
row
,
childProp
:
row
.
op_sort_condition
.
name
,
childProp
:
row
.
op_sort_condition
.
name
,
childOrder
:
row
.
op_sort_condition
.
type
,
childOrder
:
row
.
op_sort_condition
.
type
,
};
};
}
if
(
item
)
{
item
.
sort
(
item
.
sort
(
row
.
op_sort_condition
.
name
,
row
.
op_sort_condition
.
name
,
row
.
op_sort_condition
.
type
,
row
.
op_sort_condition
.
type
,
...
@@ -1030,7 +1036,7 @@ export default {
...
@@ -1030,7 +1036,7 @@ export default {
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
dir
&&
this
.
$route
.
query
.
id
)
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
dir
&&
this
.
$route
.
query
.
id
)
{
this
.
profile_dir
=
this
.
$route
.
query
.
dir
;
this
.
profile_dir
=
this
.
$route
.
query
.
dir
;
this
.
train_id
=
this
.
$route
.
query
.
id
;
this
.
train_id
=
this
.
$route
.
query
.
id
;
document
.
title
=
`
${
decodeURIComponent
(
this
.
train_id
)}
-
${
this
.
$t
(
'
profiler.titleText
'
)}
-MindInsight`
;
document
.
title
=
`
${
decodeURIComponent
(
this
.
train_id
)}
-
${
this
.
$t
(
'
profiler.titleText
'
)}
-MindInsight`
;
}
else
{
}
else
{
document
.
title
=
`
${
this
.
$t
(
'
profiler.titleText
'
)}
-MindInsight`
;
document
.
title
=
`
${
this
.
$t
(
'
profiler.titleText
'
)}
-MindInsight`
;
}
}
...
...
mindinsight/ui/src/views/train-manage/training-dashboard.vue
浏览文件 @
781309a4
...
@@ -292,9 +292,14 @@ export default {
...
@@ -292,9 +292,14 @@ export default {
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
id
)
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
id
)
{
this
.
trainingJobId
=
this
.
$route
.
query
.
id
;
this
.
trainingJobId
=
this
.
$route
.
query
.
id
;
this
.
summaryPath
=
decodeURIComponent
(
this
.
trainingJobId
);
this
.
summaryPath
=
decodeURIComponent
(
this
.
trainingJobId
);
document
.
title
=
this
.
summaryPath
+
'
-
'
+
this
.
$t
(
'
trainingDashboard.trainingDashboardTitle
'
)
+
'
-MindInsight
'
;
document
.
title
=
this
.
summaryPath
+
'
-
'
+
this
.
$t
(
'
trainingDashboard.trainingDashboardTitle
'
)
+
'
-MindInsight
'
;
}
else
{
}
else
{
document
.
title
=
this
.
$t
(
'
trainingDashboard.trainingDashboardTitle
'
)
+
'
-MindInsight
'
;
document
.
title
=
this
.
$t
(
'
trainingDashboard.trainingDashboardTitle
'
)
+
'
-MindInsight
'
;
this
.
trainingJobId
=
''
;
this
.
trainingJobId
=
''
;
this
.
$message
.
error
(
this
.
$t
(
'
trainingDashboard.invalidId
'
));
this
.
$message
.
error
(
this
.
$t
(
'
trainingDashboard.invalidId
'
));
}
}
...
@@ -790,6 +795,7 @@ export default {
...
@@ -790,6 +795,7 @@ export default {
histogramTag
=
this
.
histogramTag
;
histogramTag
=
this
.
histogramTag
;
}
}
if
(
!
histogramTag
)
{
if
(
!
histogramTag
)
{
this
.
histogramTag
=
histogramTag
;
return
;
return
;
}
}
const
params
=
{
const
params
=
{
...
@@ -797,7 +803,8 @@ export default {
...
@@ -797,7 +803,8 @@ export default {
tag
:
histogramTag
,
tag
:
histogramTag
,
};
};
// tag
// tag
RequestService
.
getHistogramData
(
params
).
then
((
res
)
=>
{
RequestService
.
getHistogramData
(
params
).
then
(
(
res
)
=>
{
if
(
if
(
!
res
||
!
res
||
!
res
.
data
||
!
res
.
data
||
...
@@ -811,7 +818,11 @@ export default {
...
@@ -811,7 +818,11 @@ export default {
this
.
histogramData
=
this
.
formOriData
(
data
);
this
.
histogramData
=
this
.
formOriData
(
data
);
this
.
formatDataToChar
();
this
.
formatDataToChar
();
this
.
updateHistogramSampleData
();
this
.
updateHistogramSampleData
();
});
},
(
e
)
=>
{
this
.
histogramTag
=
''
;
},
);
},
},
formOriData
(
dataItem
)
{
formOriData
(
dataItem
)
{
const
chartData
=
[];
const
chartData
=
[];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录