Sulba
ReviewSign inAccount
Theme
Editor theme
Light
Dark

Intermediate · PyTorch

Tensors and autograd

Port the records office's digit reader from NumPy to PyTorch: its digits as tensors, its gradients from autograd, a loss with a backward pass of your own, and a reader that trains step for step as the NumPy one did.

You build
digits.py, then network.py, then trainer.py, then reader.py
Stages
3 Build, 1 Catch, 1 Ship
Time
About 4 hours
Runs on
Your machine

Loading the workspace…