From ff40ba07236db8d4f0ae08cb300c08bd8fbe6426 Mon Sep 17 00:00:00 2001 From: Ryan Hill Date: Tue, 11 May 2021 16:15:43 -0700 Subject: [PATCH] Still can't unload providers in python, alas. --- onnxruntime/python/onnxruntime_pybind_state.cc | 7 ------- 1 file changed, 7 deletions(-) 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