-
Notifications
You must be signed in to change notification settings - Fork 414
Closed
Description
I've a native dependency binding problem in a .NET Interactive F# notebook:
#i "nuget: https://donsyme.pkgs.visualstudio.com/TorchSharp/_packaging/packages2/nuget/v3/index.json"
#r "nuget:libtorch-cpu,0.3.52118"
#r "nuget:TorchSharp,0.3.52118"
Then
TorchSharp.Tensor.LongTensor.From([| 0L .. 100L |])
Gives:
System.DllNotFoundException: Unable to load shared library 'LibTorchSharp' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libLibTorchSharp: cannot open shared object file: No such file or directory
The native DLL is in here:
#!pwsh
bash -c "ls ~/.nuget/packages/libtorch-cpu/0.3.52118/runtimes/linux-x64/native"
It seems to resolved OK when building a .NET test project referencing this (see https://github.com/DiffSharp/DiffSharp/blob/feature/torch2/src/DiffSharp.Tests/DiffSharp.Tests.fsproj#L39) - though perhaps there's something wrong with the nuget package I've made (my apologies if so)
I'm happy to dig into it tomorrow but figured I'd ask where to start (smile)
Please complete the following:
The above was with the .NET Interactive notebook I get on binder from the link on the repo
Which version of .NET Interactive are you using? There are a few ways to find this out:
| .NET Interactive© 2020 Microsoft CorporationVersion: 1.0.126813+f0f6ca13af942416e7c04efa3470ef93c60717f5Build date: 2020-05-19T06:38:10.0000000Zhttps://github.com/dotnet/interactive
-- | --
Metadata
Metadata
Assignees
Labels
No labels