Skip to content

Conversation

@karthikrangasai
Copy link
Contributor

@karthikrangasai karthikrangasai commented Jun 27, 2021

What does this PR do?

When the model is loaded from a previous checkpoint with strict=False we can inform the user regarding the missing keys and unexpected keys.

Fixes #8119

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 🙃

@justusschock justusschock enabled auto-merge (squash) June 29, 2021 08:21
@codecov
Copy link

codecov bot commented Jun 29, 2021

Codecov Report

Merging #8152 (6ac56c4) into master (4af8eff) will decrease coverage by 5%.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master   #8152    +/-   ##
=======================================
- Coverage      93%     88%    -5%     
=======================================
  Files         212     212            
  Lines       13595   13581    -14     
=======================================
- Hits        12633   11941   -692     
- Misses        962    1640   +678     

@carmocca carmocca added this to the v1.4 milestone Jun 29, 2021
@carmocca carmocca added the docs Documentation related label Jun 29, 2021
auto-merge was automatically disabled June 30, 2021 08:05

Head branch was pushed to by a user without write access

Copy link
Contributor

@carmocca carmocca left a comment

Choose a reason for hiding this comment

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

I don't think we need a test since this is just printing an output from PyTorch

@carmocca carmocca added the ready PRs ready to be merged label Jun 30, 2021
@pep8speaks
Copy link

pep8speaks commented Jun 30, 2021

Hello @karthikrangasai! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-06-30 17:33:21 UTC

@carmocca carmocca enabled auto-merge (squash) June 30, 2021 17:36
@carmocca carmocca merged commit 1afc1ca into Lightning-AI:master Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation related ready PRs ready to be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Log non-matching keys when loading checkpoints in non-strict mode

6 participants