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

Method create_var_node_from_desc

python/paddle/base/framework.py:5720–5731  ·  view source on GitHub ↗

Create a variable node by using an existing VarDesc in the graph. Depend on the giving VarDesc, the created variable node may be persistable. Args: var_desc(core.VarDesc): the giving variable description. Returns: IrVarNode: the created vari

(self, var_desc)

Source from the content-addressed store, hash-verified

5718 return IrVarNode(self.graph.create_control_dep_var())
5719
5720 def create_var_node_from_desc(self, var_desc):
5721 """
5722 Create a variable node by using an existing VarDesc in the graph.
5723 Depend on the giving VarDesc, the created variable node may be persistable.
5724
5725 Args:
5726 var_desc(core.VarDesc): the giving variable description.
5727
5728 Returns:
5729 IrVarNode: the created variable node.
5730 """
5731 return IrVarNode(self.graph.create_var_node(var_desc))
5732
5733 def create_op_node(self, op_type, attrs, inputs, outputs):
5734 """

Calls 2

IrVarNodeClass · 0.85
create_var_nodeMethod · 0.80

Tested by

no test coverage detected