dotnet/TorchSharp
A .NET library that provides access to the library that powers PyTorch. observed · 2026-08-28
Health v2 · maintenance only
73/100
- Activity 90
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2882
- days_rel: n/a
- days_push: 61
- n_releases_24m: 0
Adoption not part of the score
1850 stars · 228 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
TorchSharp is a .NET library providing bindings to LibTorch, the library that powers PyTorch, with a focus on tensors and a PyTorch-like API. It is a wrapper library maintained under the .NET Foundation, with companion TorchAudio and TorchVision packages.
Use cases
- train neural networks in C# or F#
- run PyTorch models from a .NET application
- perform tensor math with GPU acceleration in .NET
- load TorchScript models for inference in .NET
- build computer vision or audio ML pipelines in C#
When to choose
- you want PyTorch-style deep learning while staying in the .NET ecosystem
- you need to deploy ML inference inside existing C#/.NET services
- you prefer static typing and .NET tooling over Python
When to avoid
- you need the full PyTorch ecosystem of Python-only libraries and tooling
- you are on Intel-based macOS, which is no longer supported
- you want a fully stable API - breaking changes may occur before v1.0
Facets
library · maturity active
machine-learning deep-learning gpu-computing machine-learning deep-learning cross-platform dotnet windows libtorch pytorch tensors torchscript csharp fsharp nuget linux macos gpu
1 source
- readme: https://github.com/dotnet/TorchSharp · fetched 2026-08-28 · 5c79c0dd4bee
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dotnet/TorchSharp | main | 73 |
For agents
markdown · JSON · MCP: product_card(name="dotnet/TorchSharp")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem