r/coolgithubprojects • u/TTVBetboster • 3m ago
OxyTorch: An early port of PyTorch to rust, looking for contributers devs and design feedback
github.comHey, I have started OxyTorch. It does not wrap LibTorch or any other framework. It is a direct port of Pytorch to rust with a reverse engineer strat. Its very early and there is no tensor type yet, so you cant train anything, tho there are some things that work today: dtypes, type promotion, device strings, broadcast shapes and few stride helpers.
The thing I would most like opinions and help on is how Tensor should work. PyTorch lets views share storage and be changed in place, which just dosen't fit neatly with Rusts borrowing rules. How would you design that?
Repo: https://github.com/ChitrakshKataria/OxyTorch
There are also some neat and simple good first issues if you want to start somewhere a little easier.
Edit: The goal of OxyTorch is to port PyTorch to Rust while keeping its familiar design, so people who already know PyTorch don't have to learn LibTorch's or any other framework's internals. It also aims to combine speed with Rust's memory safety, which C++ doesn't guarantee.

