-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception:Only one instance of LoggingManager created with InstanceType::Default can exist at any point in time. #1430
Comments
OrtEnv should be created only once, for each process. |
So I can create multiple sessions under one OrtEnv, right? |
yes, that's the idea. |
@pranavsharma @snnn hi, I hit this issue when try to load NO.2 model using C#, (NO.1 model is loaded by other dll which is black-box for me) I followed the following C# sample: https://github.com/microsoft/onnxruntime/blob/master/csharp/sample/Microsoft.ML.OnnxRuntime.InferenceSample/Program.cs |
Talking with @keepWalking offline. We're solving this problem in the upcoming release. |
same error. |
I'm experiencing this issue as well. Any updates? |
I have the same issue. |
This has been fixed already. Did you try the latest master? |
I am using 1.3.1. I have to use it in a product and we have taken the clearance for that version only. However, I am facing many memory leak issues for large data during Run method call on the model. If you could help then it will be great. |
@Karnav123 let me understand a few basics. Which language APIs are you using? |
I am not able to understand why it gives memory error in Run if tensor creation of large data is successful. |
|
I have created an issue already related to this: #4614 |
Nice!! I fixed it using the latest master. The build Instructions is : CPU
GPU
Above CPU and GPU version are all OK! And I also tested offical pre-build version(1.4.0 CPU and 1.1.2 GPU):
Above all tested is C++ API!! OS is Ubuntu 16.04 CUDA 10.0 cudnn 7.4.2. |
I am building an ONNX inference server, and I need multiple model loaded simultaneously. The exception raised when I loaded multiple models(when I called OrtCreateEnv and OrtCreateSession), every model has its own OrtSession and OrtEnv objects. How to fix it?
The text was updated successfully, but these errors were encountered: