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

integrate metrics API with self.log #3961

Merged
merged 8 commits into from
Oct 8, 2020

Conversation

ananyahjha93
Copy link
Contributor

Co-authored-by: Teddy Koker teddy.koker@gmail.com

What does this PR do?

Fixes # (issue)

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together? Otherwise, we ask you to create a separate PR for every change.
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?
  • Did you verify new and existing tests pass locally with your changes?
  • If you made a notable change (that affects users), did you update the CHANGELOG?

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 🙃

Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
@ananyahjha93 ananyahjha93 added this to the 1.0 milestone Oct 7, 2020
@ananyahjha93 ananyahjha93 added feature Is an improvement or enhancement v1.0 allowed labels Oct 7, 2020
@mergify mergify bot requested a review from a team October 7, 2020 23:14
@codecov
Copy link

codecov bot commented Oct 7, 2020

Codecov Report

Merging #3961 into master will decrease coverage by 0%.
The diff coverage is 86%.

@@          Coverage Diff           @@
##           master   #3961   +/-   ##
======================================
- Coverage      90%     90%   -0%     
======================================
  Files         218     218           
  Lines       15654   15625   -29     
======================================
- Hits        14045   14005   -40     
- Misses       1609    1620   +11     

@ananyahjha93 ananyahjha93 changed the title integrate metrics API with self.log [wip] integrate metrics API with self.log Oct 7, 2020
@ananthsub
Copy link
Contributor

How does this interact with sync_dist on the log API? does that trigger the sync of the metric?

@teddykoker
Copy link
Contributor

@ananthsub sync_dist is automatically called on compute() of the metric, and on forward() if ddp_sync_on_step=True. The only thing we have to do to automate with lightning is call compute at the end of the epoch.

Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
@pep8speaks
Copy link

pep8speaks commented Oct 8, 2020

Hello @ananyahjha93! Thanks for updating this PR.

Line 279:78: W291 trailing whitespace
Line 302:78: W291 trailing whitespace

Comment last updated at 2020-10-08 02:07:59 UTC

teddykoker and others added 6 commits October 7, 2020 21:23
Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
Co-authored-by: Teddy Koker <teddy.koker@gmail.com>
@ananyahjha93 ananyahjha93 changed the title [wip] integrate metrics API with self.log integrate metrics API with self.log Oct 8, 2020
@williamFalcon williamFalcon merged commit 6f1a2ce into master Oct 8, 2020
@Borda Borda deleted the metrics/logging_integration branch October 9, 2020 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Is an improvement or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants