dotnet/TorchSharp
A .NET library that provides native access to PyTorch (libtorch) for tensor computations, neural network building, and model training.

TorchSharp is the .NET binding for PyTorch, enabling .NET developers to access the full PyTorch ecosystem including tensor operations, automatic differentiation, neural network modules, and model training. It provides packages for TorchVision (computer vision), TorchAudio (audio processing), and supports both CPU and CUDA compute targets. The library allows .NET developers to write and train deep learning models using familiar .NET languages while leveraging the underlying libtorch implementation.