forked from mindspore-Ecosystem/mindspore
!43243 [MS][LITE][parallel predict] add gc
Merge pull request !43243 from yefeng/436-Add_gc
This commit is contained in:
commit
abd85adeb1
|
@ -580,6 +580,9 @@ int LiteSession::CompileGraph(Model *model) {
|
|||
}
|
||||
|
||||
is_running_.store(false);
|
||||
#if defined(LINUX_RUNTIME)
|
||||
(void)malloc_trim(0);
|
||||
#endif
|
||||
return RET_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue