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

Method clone

python/paddle/base/framework.py:5605–5616  ·  view source on GitHub ↗

Create a new and duplicated IrGraph. Warns: The method only clones the graph structure, not its attributes. Returns: IrGraph: A new and duplicated graph.

(self)

Source from the content-addressed store, hash-verified

5603 self._for_test = for_test
5604
5605 def clone(self):
5606 """
5607 Create a new and duplicated IrGraph.
5608
5609 Warns:
5610 The method only clones the graph structure, not its attributes.
5611
5612 Returns:
5613 IrGraph: A new and duplicated graph.
5614 """
5615 g = self.graph.clone()
5616 return IrGraph(g, self._for_test)
5617
5618 def is_test(self):
5619 """

Callers 15

padFunction · 0.45
normalize_programFunction · 0.45
saveFunction · 0.45
normalize_pir_programFunction · 0.45
sinc_Function · 0.45
unique_consecutiveFunction · 0.45
uniqueFunction · 0.45
scatter_nd_addFunction · 0.45
_index_fill_implFunction · 0.45
cloneFunction · 0.45
save_quantized_modelMethod · 0.45
save_quantized_modelMethod · 0.45

Calls 1

IrGraphClass · 0.85

Tested by

no test coverage detected