Skip to content

chapter 7 torch implementation of CustomModel forgets to zero_grad #293

Description

@xdavidliu

I posted it here too: https://livebook.manning.com/forum?product=chollet3&comment=585044

the torch train_step implementations need to self.zero_grad(), or else the results are terrible

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions