syna.utils.viz module

syna.utils.viz.get_dot_graph(output, verbose: bool = True) str[source]

Build and return a DOT-format directed graph for the computation graph that produced output.

syna.utils.viz.plot_dot_graph(output, verbose: bool = True, to_file: str = 'graph.png')[source]

Write the DOT graph for output to a temporary dot file and call Graphviz dot to render it to to_file. Requires dot in PATH.