Fix deleting registry at right time.

This commit is contained in:
Ryan Hill 2021-04-24 01:15:14 -07:00
parent 06eac846b8
commit 393286f484

View file

@ -19,6 +19,8 @@ using namespace onnxruntime;
namespace onnxruntime {
void Shutdown_DeleteRegistry();
struct CUDAProviderFactory : IExecutionProviderFactory {
CUDAProviderFactory(const CUDAExecutionProviderInfo& info)
: info_{info} {}
@ -157,6 +159,7 @@ struct CUDA_Provider : Provider {
}
void Shutdown() override {
Shutdown_DeleteRegistry();
}
} g_provider;