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

In the function 'loss_func' of 'Net class' of"Burgers.ipynb", do we need to add 'self.adam.zero_grad()' ? #6

Closed
kl869994854 opened this issue Apr 16, 2023 · 1 comment

Comments

@kl869994854
Copy link

In the function 'loss_func' of 'Net class' of"Burgers.ipynb", do we need to add 'self.adam.zero_grad()' ?

@jayroxis
Copy link
Owner

Yes, you are right. It is actually a bug, I fixed now, thanks a lot for pointing out.

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

2 participants