Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
bcffe753
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看板
提交
bcffe753
编写于
4月 02, 2020
作者:
W
wei_ning_wang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
scalar 报错
上级
8ca7b522
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
10 deletion
+20
-10
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
+15
-9
未找到文件。
mindinsight/ui/src/views/train-manage/scalar-compare.vue
浏览文件 @
bcffe753
...
@@ -564,7 +564,11 @@ export default {
...
@@ -564,7 +564,11 @@ export default {
ajaxArr
.
push
(
this
.
addAjax
(
params
,
yIndex
));
ajaxArr
.
push
(
this
.
addAjax
(
params
,
yIndex
));
});
});
Promise
.
all
(
ajaxArr
)
Promise
.
all
(
ajaxArr
.
map
(
function
(
promiseItem
)
{
return
promiseItem
.
catch
(
function
(
err
)
{
return
err
;
});
}))
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
!
res
)
{
if
(
!
res
)
{
return
;
return
;
...
...
mindinsight/ui/src/views/train-manage/scalar.vue
浏览文件 @
bcffe753
...
@@ -336,6 +336,11 @@ export default {
...
@@ -336,6 +336,11 @@ export default {
this
.
getScalarsList
();
this
.
getScalarsList
();
this
.
firstNum
=
1
;
this
.
firstNum
=
1
;
// auto refresh
if
(
this
.
isTimeReload
)
{
this
.
autoUpdateSamples
();
}
});
});
},
},
methods
:
{
methods
:
{
...
@@ -429,11 +434,6 @@ export default {
...
@@ -429,11 +434,6 @@ export default {
// Refresh the chart data on the current page
// Refresh the chart data on the current page
this
.
freshCurPageData
();
this
.
freshCurPageData
();
}
}
// auto refresh
if
(
this
.
isTimeReload
)
{
this
.
autoUpdateSamples
();
}
},
this
.
requestErrorCallback
)
},
this
.
requestErrorCallback
)
.
catch
((
e
)
=>
{
.
catch
((
e
)
=>
{
this
.
$message
.
error
(
this
.
$t
(
'
public.dataError
'
));
this
.
$message
.
error
(
this
.
$t
(
'
public.dataError
'
));
...
@@ -499,22 +499,28 @@ export default {
...
@@ -499,22 +499,28 @@ export default {
promiseArr
.
push
(
this
.
addPromise
(
params
));
promiseArr
.
push
(
this
.
addPromise
(
params
));
Promise
.
all
(
promiseArr
)
Promise
.
all
(
promiseArr
.
map
(
function
(
promiseItem
)
{
return
promiseItem
.
catch
(
function
(
err
)
{
return
err
;
});
}))
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
// error
// error
if
(
!
res
||
!
res
.
length
)
{
if
(
!
res
||
!
res
.
length
)
{
return
;
return
;
}
}
if
(
sampleObject
.
charObj
)
{
sampleObject
.
charObj
.
showLoading
();
}
let
scalarIndex
=
0
;
let
scalarIndex
=
0
;
let
hasInvalidData
=
false
;
let
hasInvalidData
=
false
;
for
(
let
i
=
0
;
i
<
res
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
res
.
length
;
i
++
)
{
if
(
!
res
[
i
]
||
!
res
[
i
].
data
)
{
if
(
!
res
[
i
]
||
!
res
[
i
].
data
)
{
sampleObject
.
charObj
.
clear
();
return
;
return
;
}
}
if
(
sampleObject
.
charObj
)
{
sampleObject
.
charObj
.
showLoading
();
}
const
resData
=
res
[
i
].
data
;
const
resData
=
res
[
i
].
data
;
const
tempObject
=
{
const
tempObject
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录