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

Method all_var_nodes

python/paddle/base/framework.py:5630–5634  ·  view source on GitHub ↗

Return all variable nodes included in the graph as a set.

(self)

Source from the content-addressed store, hash-verified

5628 return {IrNode(node) for node in self.graph.nodes()}
5629
5630 def all_var_nodes(self):
5631 """
5632 Return all variable nodes included in the graph as a set.
5633 """
5634 return {IrVarNode(node) for node in self.graph.nodes() if node.is_var()}
5635
5636 def all_persistable_nodes(self):
5637 """

Callers 15

_insert_funcMethod · 0.95
drawMethod · 0.95
_create_global_stepMethod · 0.80
applyMethod · 0.80
_remove_ctrl_varsMethod · 0.80
_remove_unused_var_nodesFunction · 0.80
_remove_ctrl_varsFunction · 0.80

Calls 3

IrVarNodeClass · 0.85
nodesMethod · 0.45
is_varMethod · 0.45

Tested by

no test coverage detected