From 1827270177be3f5f978e8581e89ffc593aa4e738 Mon Sep 17 00:00:00 2001 From: rick_sanchez Date: Fri, 19 Jun 2020 09:44:09 +0800 Subject: [PATCH] Fix bugs when releasing resources. --- mindspore/ccsrc/pynative/pynative_execute.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/mindspore/ccsrc/pynative/pynative_execute.cc b/mindspore/ccsrc/pynative/pynative_execute.cc index 30fb4ef1afd..69c9d4392ed 100644 --- a/mindspore/ccsrc/pynative/pynative_execute.cc +++ b/mindspore/ccsrc/pynative/pynative_execute.cc @@ -886,8 +886,6 @@ void PynativeExecutor::Clean() { MS_LOG(INFO) << "Clean all res"; Clear(); grad_flag_ = false; - graph_map_.clear(); - cell_graph_map_.clear(); df_builder_ = nullptr; ad::CleanRes(); pipeline::ReclaimOptimizer();