!43243 [MS][LITE][parallel predict] add gc

Merge pull request !43243 from yefeng/436-Add_gc
This commit is contained in:
i-robot 2022-09-30 07:38:10 +00:00 committed by Gitee
commit abd85adeb1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}