diff --git a/mindinsight/ui/src/components/debugger-tensor.vue b/mindinsight/ui/src/components/debugger-tensor.vue index 92afb35b..4837f2c1 100644 --- a/mindinsight/ui/src/components/debugger-tensor.vue +++ b/mindinsight/ui/src/components/debugger-tensor.vue @@ -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 = { diff --git a/mindinsight/ui/src/mixins/debugger-mixin.vue b/mindinsight/ui/src/mixins/debugger-mixin.vue index e7fed52a..1945f75c 100644 --- a/mindinsight/ui/src/mixins/debugger-mixin.vue +++ b/mindinsight/ui/src/mixins/debugger-mixin.vue @@ -52,6 +52,9 @@ export default { */ collapseBtnClick() { this.leftShow = !this.leftShow; + setTimeout(() => { + this.initSvg(false); + }, 500); }, /** * Step input validation