Browse Source

UI fix bug of debugger that error reported in switching tensor graph center

tags/v1.1.0
WeiFeng-mindinsight 5 years ago
parent
commit
def57065fb
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