Skip to content
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

NotSupportedException: This application or script uses TorchSharp but doesn't contain a reference to libtorch-cpu-win-x64 #1264

Open
hoangdung3498 opened this issue Mar 8, 2024 · 2 comments

Comments

@hoangdung3498
Copy link

I install following package :
TorchSharp-cpu version: 0.101.6
And it automatically installs additional TorchSharp(0.101.6) and libtorch-cpu,libtorch-cpu-linux-x64,libtorch-cpu-osx-x64,libtorch-cpu-win-x64 (all is version 2.1.0.1)
Visual Studio 2022 17.8.3
Set up to run on project asp.net MVC in .NET Framwork 4.7.2

When i try use "var idx_tensor = torch.arange(62);" , it raise error :" NotSupportedException: This application or script uses TorchSharp but doesn't contain a reference to libtorch-cpu-win-x64".

first , i have installed only TorchSharp-cpu in console app and it not work, but after “Migrate pakages.config to PackageReference” it work. So then i tried same thing in asp.net program and i stuck again. I also sure that i run in x64 and all dll is ready in bin of asp.net. I also clear torch package in .../.nuget/packages/ and reinstall but still error. I am grateful for any solution now.

@KevinKrueger
Copy link

Same problem!

@oscar811
Copy link

Same here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants