Skip to content

Question of run.py #29

@Exuan148

Description

@Exuan148

Hello!
Within each epoch, shouldn't we firstly set gradient of the optimizer as zero? I think we should use "optim.zero_grad()" in front of each loop, is it right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions