« * K @rahulrav.com

Rahul Ravikumar @rahulrav.com

2026-07-20 06:46 UTC

I have always wanted to better understand how frameworks like PyTorch do back propagation for gradient descent. I finally wrote my own implementation for a scalar valued type that can compute gradients from the ground up. Its ~130 lines of Kotlin. Remarkably capable now ! github.com/tikurahul/by...

Link: GitHub - tikurahul/bytegrad: An implementation of the scalar valued type in Kotlin, that can suppor… (github.com/tikurahul/bytegrad)

7 likes, 0 reposts, 1 replies

3 Next post4 More from @rahulrav.comBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup