MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / nodeClass

Function nodeClass

tensorboard/plugins/graph/tf_graph_common/node.ts:628–642  ·  view source on GitHub ↗
(d: render.RenderNodeInfo)

Source from the content-addressed store, hash-verified

626 return shapeGroup;
627}
628export function nodeClass(d: render.RenderNodeInfo) {
629 switch (d.node.type) {
630 case NodeType.OP:
631 return Class.OPNODE;
632 case NodeType.META:
633 return Class.METANODE;
634 case NodeType.SERIES:
635 return Class.SERIESNODE;
636 case NodeType.BRIDGE:
637 return Class.BRIDGENODE;
638 case NodeType.ELLIPSIS:
639 return Class.ELLIPSISNODE;
640 }
641 throw Error('Unrecognized node type: ' + d.node.type);
642}
643/** Modify node and its subscene and its label's positional attributes */
644function position(nodeGroup, d: render.RenderNodeInfo) {
645 let shapeGroup = tf_graph_scene.selectChild(nodeGroup, 'g', Class.Node.SHAPE);

Callers 2

buildGroupFunction · 0.85
buildGroupForAnnotationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…