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

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