add maketuple abstract

This commit is contained in:
changzherui 2021-03-16 20:02:36 +08:00
parent e6cb0affb7
commit db19b958f4
1 changed files with 1 additions and 0 deletions

View File

@ -255,6 +255,7 @@ void ReplaceLoadUserMakeTuple(const FuncGraphManagerPtr &manager, const FuncGrap
(void)std::copy_if(make_tuple_inputs.begin(), make_tuple_inputs.end(), std::back_inserter(new_make_tuple_inputs),
[load](const AnfNodePtr &input) { return load != input; });
const auto &new_make_tuple = fg->NewCNode(new_make_tuple_inputs);
new_make_tuple->set_abstract(make_tuple->abstract());
manager->Replace(make_tuple, new_make_tuple);
}