dotnet / TorchSharp

A .NET library that provides access to the library that powers PyTorch.
MIT License
1.41k stars 182 forks source link

Support use_deterministic_algorithms() #1384

Open medovina opened 1 month ago

medovina commented 1 month ago

TorchSharp does not support the torch.use_deterministic_algorithms() method. If I try to call it, I get this error:

error CS0619: 'torch.use_deterministic_algorithms(bool, bool)' is obsolete: 'not implemented'

It would be very nice to support this method since it causes PyTorch to behave deterministically, which can be super useful for debugging.