resolve ms_fucntion coredump while input invalide.

This commit is contained in:
zhangzhaoju 2021-05-28 16:15:22 +08:00
parent ea93cc380a
commit 83106ee493
1 changed files with 7 additions and 0 deletions

View File

@ -1192,6 +1192,13 @@ void ClearResAtexit() {
#ifdef ENABLE_DEBUGGER
Debugger::GetInstance()->Reset();
#endif
g_args_cache.clear();
// clean static variable to prevent from crash. As static variable is released after
// Python threads is released.
parse::data_converter::ClearObjectCache();
parse::Parser::CleanParserResource();
parse::CleanDataClassToClassMap();
trace::ClearTraceStack();
}
} // namespace pipeline
} // namespace mindspore