❔ Can't use TorchSharp nuget package

I must be doing something dumb... but I can't seem to launch a program with torchsharp, i keep getting
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'TorchSharp, Version=0.99.2.0, Culture=neutral, PublicKeyToken=67b0e5e1da516a1c'. The system cannot find the file specified.
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'TorchSharp, Version=0.99.2.0, Culture=neutral, PublicKeyToken=67b0e5e1da516a1c'. The system cannot find the file specified.
I installed TorchSharp and TorchSharp-cpu v0.99.2 via nuget. My other nuget packages work fine so im really confused, anything I could look at to try and resolve this? There is even a TorchSharp.dll in my bin folder. Im using .net 7 on macos
2 Replies
lycian
lycian2y ago
You can always use dotnet-trace to find details on what's going on, including with assembly loads: https://learn.microsoft.com/en-us/dotnet/core/dependency-loading/collect-details
Collect detailed assembly loading information - .NET Core
Description of how to collect assembly loading information in .NET Core
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?