def board(tfgraph, depth=1, name='G', style=True):
"""
Return graphviz.dot.Digraph object with TensorFlow's Graphs.
@param depth
@param name
@param style
@return graphviz.dot.Digraph
"""
global CLUSTER_INDEX
CLUSTER_INDEX = 0
_node_table = node_table(tfgraph, depth=depth)
_node_inpt_table, _node_inpt_shape_table = node_input_table(tfgraph, depth=depth)
digraph = add_nodes(_node_table, name=name, style=style)
digraph = add_edges(digraph, _node_inpt_table, _node_inpt_shape_table)
return digraph
评论列表
文章目录