Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why donot use optimizer.zero_grad in each training step? #20

Open
meshiguge opened this issue Oct 23, 2018 · 0 comments
Open

why donot use optimizer.zero_grad in each training step? #20

meshiguge opened this issue Oct 23, 2018 · 0 comments

Comments

@meshiguge
Copy link

https://github.com/wabyking/TextClassificationBenchmark/blob/b5ac116c74493c28f2af2541f21385df7c73ef93/main.py#L71

@meshiguge meshiguge changed the title why donot use model.zero_grad ? why donot use optimizer.zero_grad in each training step? Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant