Browse Source

!1813 fix bug of pass manager not new node causing the node cannot find in the all node list

Merge pull request !1813 from lianliguang/master
tags/v0.5.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
1971e3f993
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      mindspore/ccsrc/pre_activate/pass/convert_tuple_output_to_maketuple.cc

+ 1
- 2
mindspore/ccsrc/pre_activate/pass/convert_tuple_output_to_maketuple.cc View File

@@ -47,8 +47,7 @@ CNodePtr ConvertTupleInputToMakeTuple(const FuncGraphPtr &graph, const CNodePtr
convert_inputs.push_back(input_node); convert_inputs.push_back(input_node);
} }
} }
cnode_ptr->set_inputs(convert_inputs);
return cnode_ptr;
return graph->NewCNode(convert_inputs);
} }
} // namespace } // namespace




Loading…
Cancel
Save