The notebooks include all of the details.
- Compute Gradients with PyTorch
(name:
u04n1-compute-grad-PyTorch.ipynb; show preview, open in Colab) - Linear Regression the PyTorch Way
(name:
u04n2-linreg-manual.ipynb; show preview, open in Colab)
These are mostly self-contained, but you may find it helpful to refer to Deep Learning for Coders chapter 4 (open in Colab).