forked from mindspore-Ecosystem/mindspore
Fix bugs when releasing resources.
This commit is contained in:
parent
b7b4333d13
commit
1827270177
|
@ -886,8 +886,6 @@ void PynativeExecutor::Clean() {
|
||||||
MS_LOG(INFO) << "Clean all res";
|
MS_LOG(INFO) << "Clean all res";
|
||||||
Clear();
|
Clear();
|
||||||
grad_flag_ = false;
|
grad_flag_ = false;
|
||||||
graph_map_.clear();
|
|
||||||
cell_graph_map_.clear();
|
|
||||||
df_builder_ = nullptr;
|
df_builder_ = nullptr;
|
||||||
ad::CleanRes();
|
ad::CleanRes();
|
||||||
pipeline::ReclaimOptimizer();
|
pipeline::ReclaimOptimizer();
|
||||||
|
|
Loading…
Reference in New Issue