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

[HOTFIX] Logging for evaluation #4684

Merged
merged 18 commits into from
Nov 15, 2020
Merged

Conversation

tchaton
Copy link
Contributor

@tchaton tchaton commented Nov 15, 2020

What does this PR do?

This PR resolve a missing self.log_metrics called at the end of an epoch !

Closes #4681

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.
Before you start reviewing make sure you have read Review guidelines. In in short, see following bullet-list:

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified; Bugfixes should be including in bug-fix release milestones (m.f.X) and features should be included in (m.X.b) releases.

Did you have fun?

Make sure you had fun coding 🙃

@Lightning-AI Lightning-AI deleted a comment from pep8speaks Nov 15, 2020
@williamFalcon
Copy link
Contributor

looks good. does this also log to the prog bar?

@codecov
Copy link

codecov bot commented Nov 15, 2020

Codecov Report

Merging #4684 (73a3651) into master (53f1439) will increase coverage by 0%.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #4684   +/-   ##
======================================
  Coverage      93%     93%           
======================================
  Files         117     117           
  Lines        8921    8922    +1     
======================================
+ Hits         8285    8286    +1     
  Misses        636     636           

@tchaton
Copy link
Contributor Author

tchaton commented Nov 15, 2020

looks good. does this also log to the prog bar?

Yes, it should, but I will make sure of this on Monday.

@williamFalcon williamFalcon merged commit 867eef0 into master Nov 15, 2020
@SeanNaren SeanNaren deleted the bugfix/4681_validation_step branch November 15, 2020 15:44
@tchaton tchaton added bug Something isn't working logger Related to the Loggers labels Nov 17, 2020
@tchaton tchaton added this to the 1.1 milestone Nov 17, 2020
rohitgr7 pushed a commit that referenced this pull request Nov 21, 2020
* resolve bugs

* add should_flush_logs

* remove should_flush

* should work

* update test

* use something else

* Update pytorch_lightning/trainer/connectors/logger_connector/logger_connector.py

* log mock_log_metrics.mock_calls

* typo

* don't use keys

* convert to list

* typo

* check kwargs

* resolve bug

* resolve flake8

Co-authored-by: Sean Naren <sean.narenthiran@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working logger Related to the Loggers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

self.log on validation_step is broken on pre 1.1 [nightly]
3 participants