tutorials
tutorials copied to clipboard
Feedback about Quickstart
Page: https://docs.pytorch.org/tutorials/beginner/basics/quickstart_tutorial.html
The example training loop under the Optimizing the Model Parameters section is not using the standard order of zero_grad(), backward(), step().
As written currently in the documentation:
# Backpropagation
loss.backward()
optimizer.step()
optimizer.zero_grad()
The same issue exists in the Optimizing Model Parameters: page: https://docs.pytorch.org/tutorials/beginner/basics/optimization_tutorial.html
cc @albanD @jbschlosser