Browse Source

!961 UI fix bug of debugger that error reported in switching tensor graph Center

From: @huang_wei_feng4
Reviewed-by: @wangyue01,@lilongfei15
Signed-off-by: @lilongfei15
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
3221ed97b3
2 changed files with 10 additions and 0 deletions
  1. +7
    -0
      mindinsight/ui/src/components/debugger-tensor.vue
  2. +3
    -0
      mindinsight/ui/src/mixins/debugger-mixin.vue

+ 7
- 0
mindinsight/ui/src/components/debugger-tensor.vue View File

@@ -614,6 +614,7 @@ export default {
this.curRowObj.full_name = data.full_name;
this.curRowObj.graph_name = data.graph_name;
this.curRowObj.has_prev_step = data.has_prev_step;
this.curRowObj.type = 'value';
this.curRowObj.shape = JSON.stringify(data.shape || []);

nodes.on('click', null);
@@ -648,11 +649,17 @@ export default {
.zoom()
.on('start', () => {
const event = currentEvent.sourceEvent;
if (!event) {
return;
}
pointer.start.x = event.x;
pointer.start.y = event.y;
})
.on('zoom', () => {
const event = currentEvent.sourceEvent;
if (!event) {
return;
}
const transformData = this.$parent.getTransformData(graphDom);
if (!Object.keys(graphTransform).length) {
graphTransform = {


+ 3
- 0
mindinsight/ui/src/mixins/debugger-mixin.vue View File

@@ -52,6 +52,9 @@ export default {
*/
collapseBtnClick() {
this.leftShow = !this.leftShow;
setTimeout(() => {
this.initSvg(false);
}, 500);
},
/**
* Step input validation


Loading…
Cancel
Save