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()

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