diff options
Diffstat (limited to 'ethosu/vela/nn_graph.py')
-rw-r--r-- | ethosu/vela/nn_graph.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ethosu/vela/nn_graph.py b/ethosu/vela/nn_graph.py index 677a385a..adc7904f 100644 --- a/ethosu/vela/nn_graph.py +++ b/ethosu/vela/nn_graph.py @@ -359,7 +359,9 @@ class Subgraph: s += "->" + str(dstt)[9:-2] print(s + " " + str(a)) - def print_graph(self): + def print_graph(self, label=None): + if label: + print(f"\n[ {label} ]") print("print_graph()", self.name) all_ops = self.get_all_ops() for idx, op in enumerate(all_ops): @@ -541,9 +543,9 @@ class Graph: for sg in self.subgraphs: sg.print_operators() - def print_graph(self): + def print_graph(self, label=None): for sg in self.subgraphs: - sg.print_graph() + sg.print_graph(label) def print_graph_with_tensors(self): for sg in self.subgraphs: |