From 21a5942c0aeb2d55bd12a9ee4fe2ab8b4b4ce964 Mon Sep 17 00:00:00 2001 From: fengxuefeng Date: Fri, 9 Oct 2020 16:20:05 +0800 Subject: [PATCH] Change the display of searched graphs from list to tree --- mindinsight/ui/src/mixins/commonGraph.vue | 15 +- mindinsight/ui/src/mixins/debuggerMixin.vue | 12 +- .../ui/src/views/train-manage/graph.vue | 441 ++++++++++++++++-- 3 files changed, 422 insertions(+), 46 deletions(-) diff --git a/mindinsight/ui/src/mixins/commonGraph.vue b/mindinsight/ui/src/mixins/commonGraph.vue index 94fc2421..e92b9eef 100644 --- a/mindinsight/ui/src/mixins/commonGraph.vue +++ b/mindinsight/ui/src/mixins/commonGraph.vue @@ -120,9 +120,18 @@ export default { this.selectNode(false); } } - if (pageKey === 'debugger') { - this.nodeCollapseLinkage(this.selectedNode.name); - } + this.nodeCollapseLinkage(this.selectedNode.name); + }, + /** + * Tree linkage with graph + * Collapse of current node + * @param {Obejct} name The name of the current node + */ + nodeCollapseLinkage(name) { + const node = this.$refs.tree.getNode(name.replace('_unfold', '')); + node.expanded = false; + node.loaded = false; + node.childNodes = []; }, /** * Initializing the graph diff --git a/mindinsight/ui/src/mixins/debuggerMixin.vue b/mindinsight/ui/src/mixins/debuggerMixin.vue index 9637b718..167e241f 100644 --- a/mindinsight/ui/src/mixins/debuggerMixin.vue +++ b/mindinsight/ui/src/mixins/debuggerMixin.vue @@ -155,6 +155,8 @@ export default { if (this.version === 'GPU') { this.conditions.noValue.push('NAN'); + } else { + this.conditions.noValue.push('OVERFLOW'); } this.conditions.options = this.conditions.noValue @@ -1119,16 +1121,6 @@ export default { }, ); }, - /** - * Tree linkage with graph Collapse of current node - * @param {Obejct} name The name of the current node - */ - nodeCollapseLinkage(name) { - const node = this.$refs.tree.getNode(name.replace('_unfold', '')); - node.expanded = false; - node.loaded = false; - node.childNodes = []; - }, /** * Tree linkage with graph Expand of current node * @param {Obejct} nodes Data of children of current node diff --git a/mindinsight/ui/src/views/train-manage/graph.vue b/mindinsight/ui/src/views/train-manage/graph.vue index 9a444943..212ccccd 100644 --- a/mindinsight/ui/src/views/train-manage/graph.vue +++ b/mindinsight/ui/src/views/train-manage/graph.vue @@ -131,17 +131,82 @@ limitations under the License. - +
+ + + + + + +
+ + + + + + + + + {{ node.label }} + + + + + + + + + + + {{ node.label }} + + +
+
@@ -417,7 +482,6 @@ limitations under the License.