Browse Source

!1310 Query the hit list interface when the current step is changed

From: @feng_xue_feng
Reviewed-by: @yelihua,@ouwenchang
Signed-off-by: @ouwenchang
pull/1310/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
fc7c65f2d2
3 changed files with 31 additions and 26 deletions
  1. +1
    -1
      mindinsight/ui/src/locales/en-us.json
  2. +5
    -5
      mindinsight/ui/src/locales/zh-cn.json
  3. +25
    -20
      mindinsight/ui/src/mixins/debugger-mixin.vue

+ 1
- 1
mindinsight/ui/src/locales/en-us.json View File

@@ -678,7 +678,7 @@
"param": "Threshold", "param": "Threshold",
"max_min_lt": "MAX-MIN <", "max_min_lt": "MAX-MIN <",
"max_min_gt": "MAX-MIN >", "max_min_gt": "MAX-MIN >",
"outdateTip": "When a watchpoint list is modified, the result may be outdated. Check again or perform subsequent step training. "
"outdateTip": "When a watchpoint list or the current step is modified, the result may be outdated. Check again or perform subsequent step training. "
}, },
"tensorTuningAdvice": { "tensorTuningAdvice": {
"operator_real_data_validation": [ "operator_real_data_validation": [


+ 5
- 5
mindinsight/ui/src/locales/zh-cn.json View File

@@ -624,8 +624,8 @@
"activation": "激活节点" "activation": "激活节点"
}, },
"recheckSuccess": "重新检查成功", "recheckSuccess": "重新检查成功",
"curStatisticsLabel": "当前step:",
"preStatisticsLabel": "上一个step:",
"curStatisticsLabel": "当前轮次:",
"preStatisticsLabel": "上一个轮次:",
"diffStatisticsLabel": "对比结果:", "diffStatisticsLabel": "对比结果:",
"graphFile": "图文件", "graphFile": "图文件",
"tensorDiagram": "张量关系图", "tensorDiagram": "张量关系图",
@@ -803,14 +803,14 @@
] ]
}, },
"noAdvice": "没有可用的建议", "noAdvice": "没有可用的建议",
"curStep": "显示当前step",
"preStep": "显示上一step",
"curStep": "显示当前轮次",
"preStep": "显示上一轮次",
"compareResult": "显示对比结果", "compareResult": "显示对比结果",
"recommendTip": "使用推荐监测点?", "recommendTip": "使用推荐监测点?",
"recommendDetail": "对张量全为零、梯度消失、权重更新过大等现象使用推荐监测点。", "recommendDetail": "对张量全为零、梯度消失、权重更新过大等现象使用推荐监测点。",
"use": "使用", "use": "使用",
"notUse": "不使用", "notUse": "不使用",
"outdateTip": "监测点列表发生修改,结果可能过时,请重新检查或执行后续step训练。",
"outdateTip": "监测点列表或者当前轮次发生修改,结果可能过时,请重新检查或执行后续轮次训练。",
"versionConflictTip": "MindSpore和MindInsight版本不匹配,MindSpore版本:{msv};MindInsight版本:{miv};", "versionConflictTip": "MindSpore和MindInsight版本不匹配,MindSpore版本:{msv};MindInsight版本:{miv};",
"checkTips": { "checkTips": {
"nan": "张量中含有NaN,", "nan": "张量中含有NaN,",


+ 25
- 20
mindinsight/ui/src/mixins/debugger-mixin.vue View File

@@ -59,6 +59,9 @@ export default {
RequestService.control(params, this.sessionId).then( RequestService.control(params, this.sessionId).then(
(res) => { (res) => {
this.queryTensorHistory(); this.queryTensorHistory();
if (this.radio1 === 'hit') {
this.searchWatchpointHits(true);
}
}, },
(err) => { (err) => {
this.showErrorMsg(err); this.showErrorMsg(err);
@@ -585,26 +588,28 @@ export default {
* Update tensor history by current selected node * Update tensor history by current selected node
*/ */
queryTensorHistory() { queryTensorHistory() {
const path = this.selectedNode.name.split('^');
const type = this.allGraphData[path[0].replace('_unfold', '')].type;
const ignoreType = ['name_scope', 'aggregation_scope'];
if (
!this.selectedNode.name.includes('more...') &&
!ignoreType.includes(type)
) {
const name = path[0].replace('_unfold', '');
if (this.graphFiles.value === this.$t('debugger.all')) {
this.retrieveTensorHistory(
{name: name.replace(`${name.split('/')[0]}/`, '')},
name.split('/')[0],
);
} else {
this.retrieveTensorHistory(
{
name,
},
this.graphFiles.value,
);
if (this.selectedNode.name) {
const path = this.selectedNode.name.split('^');
const type = this.allGraphData[path[0].replace('_unfold', '')].type;
const ignoreType = ['name_scope', 'aggregation_scope'];
if (
!this.selectedNode.name.includes('more...') &&
!ignoreType.includes(type)
) {
const name = path[0].replace('_unfold', '');
if (this.graphFiles.value === this.$t('debugger.all')) {
this.retrieveTensorHistory(
{name: name.replace(`${name.split('/')[0]}/`, '')},
name.split('/')[0],
);
} else {
this.retrieveTensorHistory(
{
name,
},
this.graphFiles.value,
);
}
} }
} }
}, },


Loading…
Cancel
Save