Exercises
These exercises check whether the PyTorch names still point to visible computation.
Answer it first, then check.
Answer it first, then check.
Answer it first, then check.
Answer it first, then check.
Answer it first, then check.
Answer it first, then check.
Answer it first, then check.
Written practice
- Rewrite a five-line PyTorch training step in plain English.
- Explain why
zero_grad()normally appears beforebackward(). - Describe the difference between a module and a parameter.
- Explain why the course introduced PyTorch after losses, gradients, and optimizers.