Skip to content

Commit a05deb3

Browse files
authored
graph: fixed the node inspector view (#2568)
Source of bug: 1: typo: getSvgDefineableElement -> getSvgDefinableElement 2: wrong switch statement
1 parent 841bdde commit a05deb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tensorboard/plugins/graph/tf_graph_common/tf-node-icon.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
_getType: function(inputNode, isSummary, isConst, inputType) {
174174
const {GraphIconType} = tf.graph.icon;
175175
if (inputNode) {
176-
switch (tf.graph.NodeType[inputNode.type]) {
176+
switch (inputNode.type) {
177177
case tf.graph.NodeType.OP: {
178178
const opName = inputNode.op;
179179
// TODO(tensorboarad-team): `op` should have a predictable type.
@@ -214,7 +214,7 @@
214214
const {node, renderInfo, colorBy, templateIndex} = this;
215215
const ns = tf.graph.scene.node;
216216
if (newFill !== oldFill) {
217-
ns.removeGradientDefinitions(this.$.icon.getSvgDefineableElement());
217+
ns.removeGradientDefinitions(this.$.icon.getSvgDefinableElement());
218218
}
219219
if (node && renderInfo && colorBy && templateIndex) {
220220
const nsColorBy = ns.ColorBy[colorBy.toUpperCase()];
@@ -223,7 +223,7 @@
223223
nsColorBy,
224224
renderInfo,
225225
false,
226-
this.$.icon.getSvgDefineableElement()
226+
this.$.icon.getSvgDefinableElement()
227227
);
228228
}
229229
},

0 commit comments

Comments
 (0)