diff --git a/mindspore/ccsrc/pynative/pynative_execute.cc b/mindspore/ccsrc/pynative/pynative_execute.cc index 30fb4ef1af..69c9d4392e 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();