MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / all_sub_graphs

Method all_sub_graphs

python/paddle/base/framework.py:5656–5664  ·  view source on GitHub ↗

Return all sub_graphs included in the main graph as a set.

(self, for_test=False)

Source from the content-addressed store, hash-verified

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 """

Callers 8

quant_awareFunction · 0.95
convertFunction · 0.95
_update_programMethod · 0.95
save_quantized_modelMethod · 0.95
saveMethod · 0.95
_apply_single_implMethod · 0.95

Calls 3

IrGraphClass · 0.85
rangeFunction · 0.85
get_sub_graphMethod · 0.80

Tested by 1