Skip to content

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

@hoangdung3498

Description

@hoangdung3498

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions