Users can create a dataflow graph after creating the schedule.
s = hcl.create_schedule(...)
s.dataflow_graph()
This API returns a networkx.DiGraph. Users can inspect the nodes and edges. There are also several arguments to the API. First, users can specify which stage(s) should be in the dataflow graph. All their precedence stages will also be included. Second, users can specify the level of the graph. By default, all stages will be drawn. However, users, for instance, can generate only the top-most stages by specifying level=1. Finally, users can specify whether the graph should be plotted or not. If plot=True, a graph will be drawn using pyplot.
Users can create a dataflow graph after creating the schedule.
This API returns a
networkx.DiGraph
. Users can inspect the nodes and edges. There are also several arguments to the API. First, users can specify which stage(s) should be in the dataflow graph. All their precedence stages will also be included. Second, users can specify the level of the graph. By default, all stages will be drawn. However, users, for instance, can generate only the top-most stages by specifyinglevel=1
. Finally, users can specify whether the graph should be plotted or not. Ifplot=True
, a graph will be drawn usingpyplot
.