TorchSharp
TorchSharp copied to clipboard
Calls to NativeLibrary should not assume explicit paths
It seems extremely error-prone to presume to replace the OS-specific library search strategies. It doesn't feel like library developers should assume they have to rewrite how native libraries are found in the system. Application developers should worry about their specific deployments if this doesn't work for them.
This line:
https://github.com/dotnet/TorchSharp/blob/3d01e74707e3058cf82eeca7c6fe99ba13729e2f/src/TorchSharp/Torch.cs#L60
should really just use the full TryLoad overload.