-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Open
Labels
coreTutorials of any level of difficulty related to the core pytorch functionalityTutorials of any level of difficulty related to the core pytorch functionality
Description
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
Metadata
Metadata
Assignees
Labels
coreTutorials of any level of difficulty related to the core pytorch functionalityTutorials of any level of difficulty related to the core pytorch functionality