Return all sub_graphs included in the main graph as a set.
(self, for_test=False)
| 5654 | return {IrOpNode(node) for node in self.graph.nodes() if node.is_op()} |
| 5655 | |
| 5656 | def all_sub_graphs(self, for_test=False): |
| 5657 | """ |
| 5658 | Return all sub_graphs included in the main graph as a set. |
| 5659 | """ |
| 5660 | |
| 5661 | return [ |
| 5662 | IrGraph(self.graph.get_sub_graph(i), for_test=for_test) |
| 5663 | for i in range(self.graph.sub_graph_size()) |
| 5664 | ] |
| 5665 | |
| 5666 | def get_sub_graph(self, i, for_test=False): |
| 5667 | """ |