Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
e81ca340
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看板
提交
e81ca340
编写于
4月 02, 2020
作者:
P
ph
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'phdev' of gitee.com:panhui3/mindinsight into phdev
上级
60f56e62
bcffe753
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
49 addition
and
37 deletion
+49
-37
mindinsight/ui/src/locales/zh-cn.json
mindinsight/ui/src/locales/zh-cn.json
+1
-1
mindinsight/ui/src/views/train-manage/graph.vue
mindinsight/ui/src/views/train-manage/graph.vue
+1
-1
mindinsight/ui/src/views/train-manage/image.vue
mindinsight/ui/src/views/train-manage/image.vue
+20
-12
mindinsight/ui/src/views/train-manage/scalar-compare.vue
mindinsight/ui/src/views/train-manage/scalar-compare.vue
+5
-1
mindinsight/ui/src/views/train-manage/scalar.vue
mindinsight/ui/src/views/train-manage/scalar.vue
+22
-22
未找到文件。
mindinsight/ui/src/locales/zh-cn.json
浏览文件 @
e81ca340
...
...
@@ -132,7 +132,7 @@
"50545001"
:
"API 路由资源不存在"
,
"50545002"
:
"请求API的HTTP方法错误"
,
"50545005"
:
"训练作业不存在
或不在缓存中
"
,
"50545005"
:
"训练作业不存在"
,
"50545006"
:
"Summary日志路径无效"
,
"50545007"
:
"Summary数据正在被加载,请等待Summary数据加载结束"
,
"50545009"
:
"查询的节点不在图中"
,
...
...
mindinsight/ui/src/views/train-manage/graph.vue
浏览文件 @
e81ca340
...
...
@@ -845,7 +845,7 @@ export default {
this
.
initOver
=
true
;
this
.
fileSearchBox
.
value
=
tags
.
length
?
tags
[
0
]
:
''
;
this
.
queryGraphData
();
}
else
if
(
!
hasFileSearchValue
)
{
}
else
if
(
!
hasFileSearchValue
)
{
this
.
fileSearchBox
.
value
=
''
;
}
})
...
...
mindinsight/ui/src/views/train-manage/image.vue
浏览文件 @
e81ca340
...
...
@@ -257,7 +257,7 @@ export default {
if
(
this
.
isTimeReload
)
{
this
.
autoUpdateSamples
();
}
this
.
updateAllData
();
this
.
updateAllData
(
false
);
}
},
/**
...
...
@@ -274,7 +274,10 @@ export default {
this
.
stopUpdateSamples
();
}
},
timeReloadValue
(
newVal
)
{
/**
*The refresh time is changed
*/
timeReloadValue
()
{
this
.
autoUpdateSamples
();
},
},
...
...
@@ -295,6 +298,10 @@ export default {
mounted
()
{
this
.
getCharMainContentwidth
();
this
.
getTagAndRunList
();
// Automatic refresh
if
(
this
.
isTimeReload
)
{
this
.
autoUpdateSamples
();
}
},
methods
:
{
...
...
@@ -371,11 +378,6 @@ export default {
// Obtains data on the current page
this
.
getCurPageDataArr
();
// Automatic refresh
if
(
this
.
isTimeReload
)
{
this
.
autoUpdateSamples
();
}
},
this
.
requestErrorCallback
)
.
catch
((
e
)
=>
{
this
.
$message
.
error
(
this
.
$t
(
'
public.dataError
'
));
...
...
@@ -445,8 +447,13 @@ export default {
];
}
this
.
$forceUpdate
();
})
.
catch
((
e
)
=>
{});
},
(
e
)
=>
{
sampleItem
.
totalStepNum
=
0
;
sampleItem
.
sliderValue
=
0
;
sampleItem
.
curStep
=
''
;
sampleItem
.
curImgUrl
=
''
;
sampleItem
.
curTime
=
''
;
}).
catch
((
e
)
=>
{});
});
},
/**
...
...
@@ -880,13 +887,14 @@ export default {
},
/**
* Update all data.
* @param {Boolean} ignoreError whether ignore error tip
*/
updateAllData
()
{
updateAllData
(
ignoreError
)
{
const
params
=
{
plugin_name
:
'
image
'
,
train_id
:
this
.
trainingJobId
,
};
RequestService
.
getSingleTrainJob
(
params
,
true
)
RequestService
.
getSingleTrainJob
(
params
,
ignoreError
)
.
then
((
res
)
=>
{
if
(
this
.
isReloading
)
{
this
.
$store
.
commit
(
'
setIsReload
'
,
false
);
...
...
@@ -927,7 +935,7 @@ export default {
}
this
.
autoUpdateTimer
=
setInterval
(()
=>
{
this
.
$store
.
commit
(
'
clearToken
'
);
this
.
updateAllData
();
this
.
updateAllData
(
true
);
},
this
.
timeReloadValue
*
1000
);
},
/**
...
...
mindinsight/ui/src/views/train-manage/scalar-compare.vue
浏览文件 @
e81ca340
...
...
@@ -564,7 +564,11 @@ export default {
ajaxArr
.
push
(
this
.
addAjax
(
params
,
yIndex
));
});
Promise
.
all
(
ajaxArr
)
Promise
.
all
(
ajaxArr
.
map
(
function
(
promiseItem
)
{
return
promiseItem
.
catch
(
function
(
err
)
{
return
err
;
});
}))
.
then
((
res
)
=>
{
if
(
!
res
)
{
return
;
...
...
mindinsight/ui/src/views/train-manage/scalar.vue
浏览文件 @
e81ca340
...
...
@@ -268,7 +268,7 @@ export default {
if
(
this
.
isTimeReload
)
{
this
.
autoUpdateSamples
();
}
this
.
updateAllData
();
this
.
updateAllData
(
false
);
}
},
/**
...
...
@@ -285,15 +285,8 @@ export default {
}
},
timeReloadValue
(
newVal
)
{
if
(
this
.
autoUpdateTimer
)
{
clearInterval
(
this
.
autoUpdateTimer
);
this
.
autoUpdateTimer
=
null
;
}
this
.
autoUpdateTimer
=
setInterval
(()
=>
{
this
.
$store
.
commit
(
'
clearToken
'
);
this
.
updateAllData
();
},
newVal
*
1000
);
timeReloadValue
()
{
this
.
autoUpdateSamples
();
},
},
destroyed
()
{
...
...
@@ -343,6 +336,11 @@ export default {
this
.
getScalarsList
();
this
.
firstNum
=
1
;
// auto refresh
if
(
this
.
isTimeReload
)
{
this
.
autoUpdateSamples
();
}
});
},
methods
:
{
...
...
@@ -436,11 +434,6 @@ export default {
// Refresh the chart data on the current page
this
.
freshCurPageData
();
}
// auto refresh
if
(
this
.
isTimeReload
)
{
this
.
autoUpdateSamples
();
}
},
this
.
requestErrorCallback
)
.
catch
((
e
)
=>
{
this
.
$message
.
error
(
this
.
$t
(
'
public.dataError
'
));
...
...
@@ -506,22 +499,28 @@ export default {
promiseArr
.
push
(
this
.
addPromise
(
params
));
Promise
.
all
(
promiseArr
)
Promise
.
all
(
promiseArr
.
map
(
function
(
promiseItem
)
{
return
promiseItem
.
catch
(
function
(
err
)
{
return
err
;
});
}))
.
then
((
res
)
=>
{
// error
if
(
!
res
||
!
res
.
length
)
{
return
;
}
if
(
sampleObject
.
charObj
)
{
sampleObject
.
charObj
.
showLoading
();
}
let
scalarIndex
=
0
;
let
hasInvalidData
=
false
;
for
(
let
i
=
0
;
i
<
res
.
length
;
i
++
)
{
if
(
!
res
[
i
]
||
!
res
[
i
].
data
)
{
sampleObject
.
charObj
.
clear
();
return
;
}
if
(
sampleObject
.
charObj
)
{
sampleObject
.
charObj
.
showLoading
();
}
const
resData
=
res
[
i
].
data
;
const
tempObject
=
{
...
...
@@ -1519,14 +1518,15 @@ export default {
/**
* Updating Sliding Block Data
* @param {Boolean} ignoreError whether ignore error tip
*/
updateAllData
()
{
updateAllData
(
ignoreError
)
{
const
params
=
{
plugin_name
:
'
scalar
'
,
train_id
:
this
.
trainingJobId
,
};
RequestService
.
getSingleTrainJob
(
params
,
true
)
RequestService
.
getSingleTrainJob
(
params
,
ignoreError
)
.
then
((
res
)
=>
{
if
(
this
.
isReloading
)
{
this
.
$store
.
commit
(
'
setIsReload
'
,
false
);
...
...
@@ -1600,7 +1600,7 @@ export default {
}
this
.
autoUpdateTimer
=
setInterval
(()
=>
{
this
.
$store
.
commit
(
'
clearToken
'
);
this
.
updateAllData
();
this
.
updateAllData
(
true
);
},
this
.
timeReloadValue
*
1000
);
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录