Home Projects tch-rs
tch-rs
Rust

tch-rs

Rust bindings for the C++ api of PyTorch.

by LaurentMazare · GitHub
Stars
Forks
License
Created
Last commit
Language
deep-learningmachine-learningneural-networkApache-2.0Rust
View on GitHub
In plain words

Use Rust to work with PyTorch's C++ features for deep learning projects.

You maintain this project?

Claim its page: indexed whatever its rank, translated into six languages, and enriched with what you write yourself.

Claim this page →
tch-rs — GitHub preview card
📈 Star history
5.45k5.44k
2026-07-042026-08-31
📈 Track tch-rs

Get an email alert on its next release or when it starts trending — never miss the moment.

Free · no card · unsubscribe anytime
Get email alerts →
📄 About

Rust bindings for the C++ api of PyTorch.

tch-rs has 5.4k stars on GitHub. It has been forked 442 times. tch-rs is written mainly in Rust. It has been in active development since 2019. tch-rs is available under the Apache-2.0 license. Its main topics are deep-learning, machine-learning, neural-network, pytorch.

Frequently asked questions

What is tch-rs?

Rust bindings for the C++ api of PyTorch.

Is tch-rs open source?

tch-rs is an open-source project. It is released under the Apache-2.0 license.

Is tch-rs free?

Yes. tch-rs is free and open source — you can use, modify and self-host it.

What license does tch-rs use?

tch-rs is available under the Apache-2.0 license.

What language is tch-rs written in?

tch-rs is written mainly in Rust.

🏅 Maintainer of this project?
olud.ai badge — tch-rs

Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.

[![olud.ai](https://olud.ai/badge.php?tool=laurentmazare-tch-rs)](https://olud.ai/project/laurentmazare-tch-rs.html)
More badge options →
🧬 Shares DNA with

Measured from GitHub topics shared by both projects, weighted by how rare each topic is.