forked from huawei/mindspore2022
Fix resource not release bug
This commit is contained in:
parent
4f1e586ee3
commit
983cb9b23d
|
|
@ -262,6 +262,7 @@ void ExecutorPy::DelNetRes(const std::string &id) {
|
|||
for (auto &item : tmp_info) {
|
||||
if (item.first.find(id) != string::npos) {
|
||||
MS_LOG(DEBUG) << "Delete network res:" << item.first;
|
||||
item.second = nullptr;
|
||||
(void)info_.erase(item.first);
|
||||
flag = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue