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)
| 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 | """ |
no test coverage detected