LaurentMazare/tch-rs
Rust bindings for the C++ api of PyTorch.
This project helps Rust developers integrate advanced machine learning capabilities into their applications. It takes PyTorch's C++ API (libtorch) and makes it accessible within Rust, allowing for direct use of PyTorch's tensor operations, automatic differentiation, and neural network modules. The end-user is a Rust developer building high-performance machine learning systems.
5,316 stars. Actively maintained with 5 commits in the last 30 days.
Use this if you are a Rust developer who needs to build or integrate machine learning models, leverage GPU acceleration, and utilize the full power of PyTorch directly within your Rust applications.
Not ideal if you are looking for a high-level, opinionated machine learning framework in Rust, or if you prefer a solution that abstracts away the complexities of tensor operations and model architecture.
Stars
5,316
Forks
416
Language
Rust
License
Apache-2.0
Category
Last pushed
Jan 22, 2026
Commits (30d)
5
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/LaurentMazare/tch-rs"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related frameworks
EnzymeAD/Enzyme
High-performance automatic differentiation of LLVM and MLIR.
Oxen-AI/Oxen
Lightning fast data version control system for structured and unstructured machine learning...
SunDoge/dlpark
A Rust Library for High-Performance Tensor Exchange with Python
TheMesocarp/koho
Full spectrum sheaf neural network over arbitrary CW complexes.
Photoroom/datago
A natively parallel dataloader for Python, written in Rust. Serving data at GB/s speeds, while...