Skip to content

Conversation

@daniellepintz
Copy link
Contributor

@daniellepintz daniellepintz commented Aug 26, 2021

What does this PR do?

Fixes #8940

Deprecates add_to_queue/get_from_queue from Lightning Module. To address #7671 in v1.7 we will put trainer.callback_metrics directly on the queue in __transfer_distrib_spawn_state_on_fit_end and get it from the queue in post_dispatch.

Does your PR introduce any breaking changes? If yes, please list them.

Before submitting

  • Was this discussed/approved via a GitHub issue? (not for typos and docs)
  • 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?
  • Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you list all the breaking changes introduced by this pull request?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review

Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the 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

Did you have fun?

Make sure you had fun coding 🙃

@ananthsub
Copy link
Contributor

what's the relation between this and #9118 ?

@daniellepintz
Copy link
Contributor Author

daniellepintz commented Aug 27, 2021

@ananthsub #9118 was a first attempt, I have closed it and I am not planning to merge it, in favor of this PR.

@mergify mergify bot removed the has conflicts label Aug 27, 2021
@codecov
Copy link

codecov bot commented Aug 27, 2021

Codecov Report

Merging #9126 (a5abfe9) into master (045c879) will increase coverage by 0%.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #9126   +/-   ##
======================================
  Coverage      88%     88%           
======================================
  Files         176     176           
  Lines       14808   14814    +6     
======================================
+ Hits        13036   13042    +6     
  Misses       1772    1772           

@ananthsub ananthsub added the deprecation Includes a deprecation label Aug 28, 2021
@daniellepintz
Copy link
Contributor Author

Closing in favor of #9118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecation Includes a deprecation has conflicts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate add_to_queue / get_from_queue

4 participants