!20085 [bugfix] clear func garph resource occur core dump

Merge pull request !20085 from zyli2020/mindrt_debug
This commit is contained in:
i-robot 2021-07-12 18:32:49 +00:00 committed by Gitee
commit 15bb794956
1 changed files with 6 additions and 5 deletions

View File

@ -517,11 +517,6 @@ void GraphScheduler::BuildAndScheduleGlobalActor() {
}
ActorSet *GraphScheduler::Transform(const GraphCompilerInfo &graph_compiler_info) {
// Local maps and vectors clear.
graph_output_to_actor_.clear();
front_node_to_actor_.clear();
copy_actors_.clear();
MS_LOG(INFO) << "Graph(" << graph_compiler_info.name_ << ") transforms actor begin.";
if (graph_compiler_info.graphs_.size() == 0) {
MS_LOG(EXCEPTION) << "The number of graphs is zero.";
@ -545,6 +540,12 @@ ActorSet *GraphScheduler::Transform(const GraphCompilerInfo &graph_compiler_info
MS_LOG(EXCEPTION) << "The actor set of " << graph_compiler_info.name_ << " is invalid.";
}
MS_LOG(INFO) << "Graph(" << graph_compiler_info.name_ << ") transforms actor end.";
// Local maps and vectors clear.
graph_output_to_actor_.clear();
front_node_to_actor_.clear();
copy_actors_.clear();
return actor_set.get();
}