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

Function getSeriesName

tensorboard/plugins/graph/tf_graph_common/node.ts:364–376  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

362 * Returns null if the node cannot be part of a grouped series of nodes.
363 */
364export function getSeriesName(node: Node) {
365 if (!node) {
366 return null;
367 }
368 if (node.type === NodeType.SERIES) {
369 return node.name;
370 }
371 if (node.type === NodeType.OP) {
372 let op = <OpNode>node;
373 return op.owningSeries;
374 }
375 return null;
376}
377/**
378 * Returns the SeriesNode that represents the series that the provided node
379 * is contained in (or itself if the provided node is itself a SeriesNode).

Callers 2

getContextMenuFunction · 0.85
canBeInSeriesFunction · 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…