Skip to content

Conversation

@Borda
Copy link
Collaborator

@Borda Borda commented Mar 2, 2021

What does this PR do?

dropping some unused arguments from APIP which does not affect user

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 update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

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 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 🙃

@Borda Borda added refactor design Includes a design discussion labels Mar 2, 2021
@Borda Borda added this to the 1.3 milestone Mar 2, 2021
@Borda Borda self-assigned this Mar 2, 2021
@codecov
Copy link

codecov bot commented Mar 2, 2021

Codecov Report

Merging #6308 (6c190a5) into master (ac58378) will decrease coverage by 0%.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #6308   +/-   ##
======================================
- Coverage      93%     93%   -0%     
======================================
  Files         160     160           
  Lines       11399   11398    -1     
======================================
- Hits        10640   10610   -30     
- Misses        759     788   +29     

Comment on lines +277 to +279
model.sequential_module = load_sequential_from_saved_layers(self.gpus_per_model)
save_model_fn(last_filepath, trainer)
model.sequential_module = current_layers
Copy link
Collaborator Author

@Borda Borda Mar 2, 2021

Choose a reason for hiding this comment

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

not sure how much this makes sense since the model is not used...
cc: @tchaton

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, it is used in save_model_fn as trainer will access lightning_module. So we re-create full model only temporary. But your changes should be fine.

@carmocca
Copy link
Contributor

carmocca commented Mar 3, 2021

The changes here to rpc and ModelCheckpoint are also in #6136. I'd rather get that merged first since it's a P0

@Borda Borda added the ready PRs ready to be merged label Mar 3, 2021
Copy link
Contributor

@tchaton tchaton left a comment

Choose a reason for hiding this comment

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

LGTM !

Copy link
Contributor

@akihironitta akihironitta left a comment

Choose a reason for hiding this comment

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

@Borda Borda merged commit 6166f46 into master Mar 4, 2021
@Borda Borda deleted the refactor/unused branch March 4, 2021 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

design Includes a design discussion ready PRs ready to be merged refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants