Maximum allowed size in bytes, before the attribute is considered large and filtered out of the graph.
Delimiter used in node names to denote namespaces.
Attribute key reserved for the shapes of the output tensors.
Create a new graphlib.Graph() instance with default parameters
Returns a list of the degrees of each node in the graph.
Extracts the shapes of the output tensors from the attr property in the node proto.
Create a predicate for checking whether a node should be embedded based on the specified types.
Returns the string for the series node grouping toggle button, dependant on the provided current SeriesGroupingType.
Returns the hierarchical path of the current node, based on the node's name. For example, if the name is 'a/b/c', the returned path is ['a', 'a/b', 'a/b/c'].
Returns the string for the node inclusion toggle button, dependant on the provided current InclusionType.
Returns a strict node name (name => name/(name)) to avoid conflicts where the node name is also a namespace.
For each op node (embedding or non-embedding), rename it if there is a non-embedding node under its namespace. For example, assume node name 'A'. If there is a non-embedding node under its namespace (e.g. 'A/B'), 'A' will be renamed to 'A/(A)'. Then the namespace 'A' will contain 2 nodes: '(A)' and 'B'. If all the nodes under 'A' are embedding nodes (e.g. constant and summary), keep 'A' as an Op node and don't create a namespace.
An array of regular (non-embedding) node names.
An array of embedding node names.
Dictionary object mapping names that need to be renamed to new names.
Normalizes the inputs and extracts associated metadata: 1) Inputs can contain a colon followed by a number at the end (e.g. inputName:1) and we remove this from the input name, and take note that the input was numbered. 2) Control dependency inputs contain caret at the beginning and we remove this and annotate the edge as a control dependency.
Array of unnormalized names of input nodes.
Toggle the node series grouping option in the provided map, setting it to ungroup if the series is not already in the map.
Generated using TypeDoc
Attribute key used for storing attributes that are too large.