-
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
RunAsync C# API crashes without any error #19140
Comments
@RandySheriff can you take a look? |
UPDATE: When running session.Run and session.RunAsync back to back in same block of code, the web app crashes exactly in 2 requests: @RandySheriffH @pranavsharma can you pls help with this? |
Just spoke to @vishnu-ms. While there might be issues with RunAsync C# API (which is why I'll just keep this open), Vishnu's use case doesn't require using RunAsync. I explained to him on the call and he'll report back. |
removed 'platform:web' tag, which is used for client-end (JS) app, not for server app. |
Any updates on this? |
Describe the issue
I'm running Onnx runtime 1.16.3 in a .NET Core web application.
I'm able to run the model and get outputs when using session.Run() but want to be able to run the model async and evaluate any possible performance benefits.
However, the application crashes without any exception when just RunAsync calls, but returns a result when
session.Run(options, inputValues, session.OutputNames)
is called before "session.RunAsync".This occurs both in a Linux container app and in local Docker container test (Linux using default CPU as ORT provider)
Can someone help resolve this issue?
To reproduce
Here's the C# code, can share ONNX file if needed
Urgency
Not able to proceed
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.16.3
Execution Provider
Other / Unknown
The text was updated successfully, but these errors were encountered: