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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging gradients with tensor's names #660

Merged
merged 1 commit into from
Jan 14, 2020

Conversation

MartinPernus
Copy link
Contributor

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos, doc improvements)
  • Did you read the contributor guideline?
  • Did you make sure to update the docs? Not needed
  • Did you write any new necessary tests? Not needed

What does this PR do?

Current gradient logging (when enabled) provides no information about the names of the parameters of interest, providing only raw values of gradient norms. With PyTorch's named_parameters() method we can access the names of our parameters - this is now used to name the individual gradient norm.

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 馃檭

@MartinPernus MartinPernus changed the title log named parameters Logging gradients with tensor's names Jan 3, 2020
@williamFalcon williamFalcon merged commit 3002bd3 into Lightning-AI:master Jan 14, 2020
@williamFalcon
Copy link
Contributor

@MartinPernus thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants