LaurentMazare/tch-rs
Rust bindings for the C++ api of PyTorch. observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 99
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2755
- days_rel: n/a
- days_push: 10
- n_releases_24m: 0
Adoption not part of the score
5479 stars · 447 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
tch-rs is a Rust crate providing thin bindings to the C++ API of PyTorch (libtorch), staying close to the original API. It enables tensor operations and neural network training/inference in Rust with optional CUDA support.
Use cases
- train neural networks in rust
- run pytorch models from rust
- tensor computations in rust
- deep learning inference without python
- gpu-accelerated machine learning in rust
- port pytorch code to rust
When to choose
- you want PyTorch's tensor and autograd capabilities in a Rust program
- you need to deploy models in Rust without a Python runtime
- you want low-level, close-to-libtorch control
When to avoid
- you want highly idiomatic Rust ML APIs rather than C++-style bindings
- you need a pure-Rust implementation without libtorch dependencies
- you primarily work in Python
Facets
library · maturity active
machine-learning deep-learning llm-training gpu-computing machine-learning deep-learning artificial-intelligence rust windows pytorch libtorch tensors neural-networks bindings linux macos gpu
1 source
- readme: https://github.com/LaurentMazare/tch-rs · fetched 2026-08-28 · c0cefe92a992
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| LaurentMazare/tch-rs | main | 67 |
For agents
markdown · JSON · MCP: product_card(name="LaurentMazare/tch-rs")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem