Skip to content

Feedback about Quickstart #3610

@rjdamiano

Description

@rjdamiano

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreTutorials of any level of difficulty related to the core pytorch functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions