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

Fix zero_grad place resulting in zero logs #2555

Merged
merged 48 commits into from
May 1, 2022

Conversation

sadra-barikbin
Copy link
Collaborator

Fixes #2459

Description:
Based on PR #2470 . Tests are added.

Check list:

  • New tests are added (if a new feature is added)
  • New doc strings: description and/or example code are in RST format
  • Documentation is updated (if required)

sadra-barikbin and others added 30 commits January 22, 2022 23:03
…#2459)

I  have not changed the behavior of AMP, APEX, TPU as I don't have the means to test it.
@github-actions github-actions bot added the module: engine Engine module label Apr 19, 2022
@sadra-barikbin sadra-barikbin changed the title Fix 2459 Fix zero_grad place resulting in zero logs Apr 19, 2022
Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @sadra-barikbin
Few comments to make it better

tests/ignite/engine/test_create_supervised.py Outdated Show resolved Hide resolved
tests/ignite/contrib/handlers/conftest.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sadra-barikbin , lgtm

@vfdev-5 vfdev-5 merged commit f14b184 into pytorch:master May 1, 2022
@vfdev-5
Copy link
Collaborator

vfdev-5 commented May 1, 2022

vfdev-5 added a commit that referenced this pull request May 1, 2022
vfdev-5 added a commit that referenced this pull request May 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: engine Engine module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GradsScalarHandler logs 0 gradients if default update function is used
3 participants