diff --git a/onnxruntime/python/onnxruntime_pybind_state.cc b/onnxruntime/python/onnxruntime_pybind_state.cc index 99482941e4..04fe589447 100644 --- a/onnxruntime/python/onnxruntime_pybind_state.cc +++ b/onnxruntime/python/onnxruntime_pybind_state.cc @@ -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