PaperLens
紙
Home
Close reading
Textbook
Learn
More
My Page
All-access
Sign in with Google
Mode
Students
Professional
Language
JA
EN
Theme
◐
Sign out
New
Lab
Landscape
Contributors
Glossary
Home
Close reading
Textbook
Learn
More
#autodiff
2 articles
01
2026-08-27
·
Numerical Computing
·
★ MEMBER
·
13 min read
Build Your Own Autograd — A Mini PyTorch in 100 Lines
Start from a single Value class, add operator overloading, topological ordering, and gradient accumulation, then put a neural network on top and train it. Once you have seen the reasons behind each design choice, zero_grad() and retain_graph stop being trivia to memorize.
02
2026-08-25
·
Numerical Computing
·
FREE
·
10 min read
How Autodiff Actually Works — Unpacking the PyTorch Magic
Why does writing loss.backward() hand you derivatives for millions of parameters? We build up computation graphs, the chain rule, and forward vs. reverse mode from zero — then write a working 40-line autograd engine.