Still can't unload providers in python, alas.

This commit is contained in:
Ryan Hill 2021-05-11 16:15:43 -07:00
parent 330339caa4
commit ff40ba0723

View file

@ -2104,13 +2104,6 @@ PYBIND11_MODULE(onnxruntime_pybind11_state, m) {
const logging::Logger& default_logger = logging::LoggingManager::DefaultLogger();
LOGS(default_logger, WARNING) << "Init provider bridge failed.";
}
// It appears that only windows can safely unload the providers from python at this point
#ifdef _WIN32
atexit([] {
UnloadSharedProviders();
});
#endif
#endif
#ifdef ENABLE_TRAINING