forked from mindspore-Ecosystem/mindspore
resolve ms_fucntion coredump while input invalide.
This commit is contained in:
parent
ea93cc380a
commit
83106ee493
|
@ -1192,6 +1192,13 @@ void ClearResAtexit() {
|
||||||
#ifdef ENABLE_DEBUGGER
|
#ifdef ENABLE_DEBUGGER
|
||||||
Debugger::GetInstance()->Reset();
|
Debugger::GetInstance()->Reset();
|
||||||
#endif
|
#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 pipeline
|
||||||
} // namespace mindspore
|
} // namespace mindspore
|
||||||
|
|
Loading…
Reference in New Issue