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

Method get_sub_graph

python/paddle/base/framework.py:5666–5670  ·  view source on GitHub ↗

Return i-th sub_graph in the main graph.

(self, i, for_test=False)

Source from the content-addressed store, hash-verified

5664 ]
5665
5666 def get_sub_graph(self, i, for_test=False):
5667 """
5668 Return i-th sub_graph in the main graph.
5669 """
5670 return IrGraph(self.graph.get_sub_graph(i), for_test=for_test)
5671
5672 def create_persistable_node(self, name, var_type, shape, var_dtype):
5673 """

Callers 3

all_sub_graphsMethod · 0.80

Calls 1

IrGraphClass · 0.85

Tested by 1