Skip to content

Feedback about Quickstart #3904

Description

@dearwind153

There is the following issue on this page: https://docs.pytorch.org/tutorials/beginner/basics/quickstart_tutorial.html

In the Section "Optimizing the Model Parameters", the backpropagation code order should be

    # Backpropagation
    _**optimizer.zero_grad()**_
    loss.backward()
    optimizer.step()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions