System Information (please complete the following information):
Windows OS: Windows-11-Enterprise-22H2
ML.Net Model Builder 2022: 17.15.0.2322401 (Main Build)
Microsoft Visual Studio Enterprise: 2022(17.5.2)
.Net: 6.0
Describe the bug
- On which step of the process did you run into an issue:
Project running failed with error "Two TorchSharp runtime packages have been referenced (both libtorch-cpu and libtorch-cuda)".
TestMatrix
home-depot-sentence-similarity-small.csv
To Reproduce
Steps to reproduce the behavior:
- Select Create a new project from the Visual Studio start window.
- Choose the C# Console App (.NET Core) project template.
- Add model builder by right click on the project.
- Select "Sentence similarity" scenario.
- On Data page, choose the attached .csv data source and set the three options like below.

- On the Train page, click "Start training" button to complete the training.
- Press "F5" to debug the project.
Expected behavior
Project debug successful.
Screenshot

Additional context
-
There are many errors in "consumption.cs" and "training.cs" files.


-
The issue is not repro in the generated Console App and Web API projects.