TorchSharp icon indicating copy to clipboard operation
TorchSharp copied to clipboard

Calls to NativeLibrary should not assume explicit paths

Open glopesdev opened this issue 1 month ago • 0 comments

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.

glopesdev avatar May 18 '24 10:05 glopesdev