tch-rs
Lets programmers use PyTorch, a leading AI toolkit, from the Rust programming language.
- Your data
- Stays on your device
- Coding needed
- Developers only
- Cost
- Free
- Computer
- An ordinary computer is fine
Drafted with AIMostly for developers
Lets programmers use PyTorch, a leading AI toolkit, from the Rust programming language.
PyTorch is one of the most widely used tools for building and running AI models. tch-rs is a thin bridge that lets programs written in Rust, a fast and safe programming language, use PyTorch's core engine.
It stays close to PyTorch's own C++ interface, so other, more Rust-friendly tools can be built on top. It needs the PyTorch C++ library on your computer, which it can download automatically.
Rust developers who want to train or run AI models.
Developers only. It is a code library for Rust programmers. New to this? Start here.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?