diff --git a/mindinsight/ui/src/locales/en-us.json b/mindinsight/ui/src/locales/en-us.json index 61918b35..85d6d23d 100644 --- a/mindinsight/ui/src/locales/en-us.json +++ b/mindinsight/ui/src/locales/en-us.json @@ -678,7 +678,7 @@ "param": "Threshold", "max_min_lt": "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": { "operator_real_data_validation": [ diff --git a/mindinsight/ui/src/locales/zh-cn.json b/mindinsight/ui/src/locales/zh-cn.json index 67d9a1aa..78aaa55b 100644 --- a/mindinsight/ui/src/locales/zh-cn.json +++ b/mindinsight/ui/src/locales/zh-cn.json @@ -624,8 +624,8 @@ "activation": "激活节点" }, "recheckSuccess": "重新检查成功", - "curStatisticsLabel": "当前step:", - "preStatisticsLabel": "上一个step:", + "curStatisticsLabel": "当前轮次:", + "preStatisticsLabel": "上一个轮次:", "diffStatisticsLabel": "对比结果:", "graphFile": "图文件", "tensorDiagram": "张量关系图", @@ -803,14 +803,14 @@ ] }, "noAdvice": "没有可用的建议", - "curStep": "显示当前step", - "preStep": "显示上一step", + "curStep": "显示当前轮次", + "preStep": "显示上一轮次", "compareResult": "显示对比结果", "recommendTip": "使用推荐监测点?", "recommendDetail": "对张量全为零、梯度消失、权重更新过大等现象使用推荐监测点。", "use": "使用", "notUse": "不使用", - "outdateTip": "监测点列表发生修改,结果可能过时,请重新检查或执行后续step训练。", + "outdateTip": "监测点列表或者当前轮次发生修改,结果可能过时,请重新检查或执行后续轮次训练。", "versionConflictTip": "MindSpore和MindInsight版本不匹配,MindSpore版本:{msv};MindInsight版本:{miv};", "checkTips": { "nan": "张量中含有NaN,", diff --git a/mindinsight/ui/src/mixins/debugger-mixin.vue b/mindinsight/ui/src/mixins/debugger-mixin.vue index de5d0324..02fb8594 100644 --- a/mindinsight/ui/src/mixins/debugger-mixin.vue +++ b/mindinsight/ui/src/mixins/debugger-mixin.vue @@ -59,6 +59,9 @@ export default { RequestService.control(params, this.sessionId).then( (res) => { this.queryTensorHistory(); + if (this.radio1 === 'hit') { + this.searchWatchpointHits(true); + } }, (err) => { this.showErrorMsg(err); @@ -585,26 +588,28 @@ export default { * Update tensor history by current selected node */ 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, + ); + } } } },