Replies: 1 comment 1 reply
-
You may want to ask this in the onnxruntime repository |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've converted a Pytorch model to an ONNX file and want to use it in a C# project.
But I'm running into this problem:
System.IO.FileLoadException: 'Could not load file or assembly 'Microsoft.ML.OnnxRuntime, Version=1.19.2.0, Culture=neutral, PublicKeyToken=f27f157f0a5b7bb6' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'
Library versions on C# are as follows:
1.19.2 for Microsoft.ML.OnnxRuntime.Managed
1.19.2 for Microsoft.ML.OnnxRuntime
On Python, I've used the latest version at the time for converting the Pythoch model which was 1.16.2
This is the code:
I've double-checked the managed and unmanaged libraries and they are fine.
I went through the DLL locations and versions and the .csproj file for the project and everything seems to be fine.
I checked the architecture of the dll using dependencywalker and they have the same architecture.
Beta Was this translation helpful? Give feedback.
All reactions