diff --git a/plugins/tensorboard-plugins/tb_graph_ascend/fe/package.json b/plugins/tensorboard-plugins/tb_graph_ascend/fe/package.json index a5ceedfba48f3b6dd55f7a41cb7825fc62205a65..cc4c3f0115e4510c270722da0065d8b1e908d4b8 100644 --- a/plugins/tensorboard-plugins/tb_graph_ascend/fe/package.json +++ b/plugins/tensorboard-plugins/tb_graph_ascend/fe/package.json @@ -6,7 +6,7 @@ "scripts": { "buildLinux": "cross-env NODE_ENV=production webpack && cp dist/index.html ../server/static/", "buildWin": "cross-env NODE_ENV=production webpack && copy dist\\index.html ..\\server\\static\\", - "dev": "webpack server", + "dev": "tensorboard --logdir C:\\code\\output", "prettier": "prettier --config ./.prettierrc --write ./src/**/*.ts" }, "devDependencies": { diff --git a/plugins/tensorboard-plugins/tb_graph_ascend/fe/src/tf_graph/tf-graph.ts b/plugins/tensorboard-plugins/tb_graph_ascend/fe/src/tf_graph/tf-graph.ts index 97bebdb7dc72b8ad8dcad2691f596351c5dfdf52..dc27d4c1d98057c4eacfab3854a5966c41872bc4 100644 --- a/plugins/tensorboard-plugins/tb_graph_ascend/fe/src/tf_graph/tf-graph.ts +++ b/plugins/tensorboard-plugins/tb_graph_ascend/fe/src/tf_graph/tf-graph.ts @@ -62,8 +62,11 @@ class TfGraph extends LegacyElementMixin(PolymerElement) { text-transform: none; } + +
+ @@ -103,11 +106,13 @@ class TfGraph extends LegacyElementMixin(PolymerElement) { progress: object; @property({ type: String }) override title: string; + @property({ type: String, notify: true, }) selectedNode: string; + @property({ type: Object, notify: true, diff --git a/plugins/tensorboard-plugins/tb_graph_ascend/fe/src/tf_graph_controls/tf-graph-controls.ts b/plugins/tensorboard-plugins/tb_graph_ascend/fe/src/tf_graph_controls/tf-graph-controls.ts index 1e4683440ad53b2b9137a691b75b9d4676e8aa60..0bc5eeb67fcd5c9b7b9336d3c062785ea88e0e41 100644 --- a/plugins/tensorboard-plugins/tb_graph_ascend/fe/src/tf_graph_controls/tf-graph-controls.ts +++ b/plugins/tensorboard-plugins/tb_graph_ascend/fe/src/tf_graph_controls/tf-graph-controls.ts @@ -875,7 +875,8 @@ class TfGraphControls extends LegacyElementMixin(DarkModeMixin(PolymerElement)) type: String, notify: true, }) - selectedNode: string; + selectedNode: string | null = null; + selectedNPUNode: string = ''; selectedBenchNode: string = ''; selectedMatchedNPUNode: string = ''; @@ -1464,6 +1465,7 @@ class TfGraphControls extends LegacyElementMixin(DarkModeMixin(PolymerElement)) // 也清除一下MicroStep和Step this.set('_selectedBatch', -1); this.set('_selectedStep', -1); + this.set('selectedNode', null); } computedLength(microsteps) { return microsteps.length > 0 ? microsteps.length - 1 : 0; diff --git a/plugins/tensorboard-plugins/tb_graph_ascend/fe/src/tf_graph_info/node-ioinfo-item.ts b/plugins/tensorboard-plugins/tb_graph_ascend/fe/src/tf_graph_info/node-ioinfo-item.ts index 646c3e75a03cfc335b67fab65c4b066167734993..c1dc87655c79ba4e0e5e9d8c070a3950dfdaedd3 100644 --- a/plugins/tensorboard-plugins/tb_graph_ascend/fe/src/tf_graph_info/node-ioinfo-item.ts +++ b/plugins/tensorboard-plugins/tb_graph_ascend/fe/src/tf_graph_info/node-ioinfo-item.ts @@ -57,7 +57,7 @@ class NodeIoInfoItem extends LegacyElementMixin(PolymerElement) { width: 30%; overflow: hidden; text-overflow: ellipsis; - white-space: nowrap; + white-space:normal; color: var(--secondary-text-color); font-size: 11pt; font-weight: 400; @@ -65,7 +65,8 @@ class NodeIoInfoItem extends LegacyElementMixin(PolymerElement) { .attr-right { margin-left: 35%; - word-wrap: break-word; + text-overflow: ellipsis; + white-space: nowrap; color: var(--secondary-text-color); font-size: 11pt; font-weight: 400; @@ -73,6 +74,7 @@ class NodeIoInfoItem extends LegacyElementMixin(PolymerElement) { .attr-list-item { padding-left: 8px; + } .attr-error > div {