Options
All
  • Public
  • Public/Protected
  • All
Menu

Package for the Graph Hierarchy for TensorFlow graph.

Index

Functions

addEdges

  • For each metanode in the hierarchical graph, this method adds: the edges in the metagraph. These are edges between nodes that share the same parent.

    Parameters

    Returns void

addNodes

  • Creates the metanodes in the hierarchical graph and assigns parent-child relationship between them.

    Parameters

    Returns void

addSeriesToDict

  • Add a series to the provided dictionary mapping series names to series.

    Parameters

    • seriesNodes: SeriesNode[]

      the nodes in the series. Contains name, id, prefix, suffix and parent properties of the node.

    • seriesDict: object

      the dictionary of series

    • clusterId: number

      ID of the template of the nodes of the series

    • metagraph: Graph<GroupNode | OpNode, Metaedge>

    Returns void

build

clusterNodes

detectSeries

  • For each cluster of op-nodes based op type, try to detect groupings. Infer series name using by trying to find pattern '' in the node name.

    Parameters

    Returns object

    A dictionary from series name => seriesNode

findEdgeTargetsInGraph

  • Internal utility function - given a graph (should be either a metagraph or a bridgegraph) and a node which is known to be in that graph, determine the other ends of edges that involve that node in the direction specified by whether it's inbound.

    For example if you wanted to find the predecessors of a node, you'd call this method for the parent's metagraph and bridgegraph, specifying inbound as true (look at the source of inbound edges to the specified node).

    Discovered target names are appended to the targets array.

    Parameters

    Returns void

groupSeries

  • groupSeries(metanode: Metanode, hierarchy: Hierarchy, seriesNames: object, threshold: number, map: object): void
  • Using the hierarchy template information, detect series in the provided metanode. For each detected series, create a new SeriesNode and remove series members from the metanode's metagraph and move them to the new series node's metagraph.

    Parameters

    • metanode: Metanode
    • hierarchy: Hierarchy
    • seriesNames: object

      Map of node names to their series they are contained in. This should be provided empty and is populated by this method.

      • [name: string]: string
    • threshold: number

      If the series has this many nodes or more, then group them into a series.

    • map: object

      Map of series names to their series grouping type, if one has been set.

    Returns void

    A dictionary from node name to series node name that contains the node.

Generated using TypeDoc