!6398 fix probalbility test case free too long

Merge pull request !6398 from chujinjin/fix_probability_test_case_free_too_long
This commit is contained in:
mindspore-ci-bot 2020-09-24 11:09:23 +08:00 committed by Gitee
commit 4b81175071
1 changed files with 0 additions and 7 deletions

View File

@ -1274,13 +1274,6 @@ void SessionBasic::CreateOutputNode(const CNodePtr &cnode, const std::shared_ptr
// create output
auto g_output = graph->NewCNode(make_tuple_inputs);
graph->set_output(g_output);
// set graph manager,which now is only used to get valuenodes and hardware optimizing
MS_EXCEPTION_IF_NULL(context_);
FuncGraphManagerPtr manager = context_->manager();
if (manager != nullptr) {
manager->AddFuncGraph(graph);
graph->set_manager(manager);
}
MS_LOG(INFO) << "Finish!";
}