mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Fix deleting registry at right time.
This commit is contained in:
parent
06eac846b8
commit
393286f484
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue