Skip to content

Using TorchSharp In Unity #1372

@StefanWRL

Description

@StefanWRL

I am trying to use the latest TorchSharp in my Unity project.

I keep running into this error: NotSupportedException: This application or script uses TorchSharp but doesn't contain a reference to libtorch-cpu-win-x64, Version=2.4.0.0.

I have TorchSharp and libtorch-cpu-win-x64 packages installed with Nuget for unity. I have also tried doing this manually with the same results.

Thanks for any help!

VisualStudio 2022
Pytorch 2.4.0+cpu
Python 3.9
libtorch-cpu-win-x64 2.4.0.0
TorchSharp 2.4.0.0

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