godot_rl_agents icon indicating copy to clipboard operation
godot_rl_agents copied to clipboard

Using TorchSharp in Godot

Open HangedDream opened this issue 3 years ago • 1 comments

Hi, Ed! I have a problem with using TorchSharp nuget lib in Godot C# version. Every time I try to use it in godot I get the error like:

System.DllNotFoundException: LibTorchSharp assembly: unknown assembly type: unknown type member:

But the same code can work in a regular console project without godot involved.

I see you mentioned in other issue #https://github.com/virtualmlnet/hackathon-2021/issues/6#issuecomment-968059783 that you have tried the torchsharp, it seems that it can work but just nor support onnx format. If so, can you share how you configure the godot project to let it work with torchsharp? or maybe you can share a demo project ?

HangedDream avatar Jun 06 '22 14:06 HangedDream

Hi. I actually had exactly the sample problem as you and I never managed to resolve it. There are Godot RL frameworks that use the torch c++ library see GodotAIGym, perhaps that could be of help? Let me know if you find a solution to this problem, as I would be interested in including it in the gdrl framework.

edbeeching avatar Jun 07 '22 07:06 edbeeching