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

Deprecate trainer.disable_validation #8291

Merged
merged 2 commits into from
Jul 5, 2021

Conversation

carmocca
Copy link
Contributor

@carmocca carmocca commented Jul 5, 2021

What does this PR do?

We have two properties for the same check. Deprecating the least used one.

https://github.com/PyTorchLightning/pytorch-lightning/blob/441e16f61cc2a50f2d725329ee3013a77bbf34e5/pytorch_lightning/trainer/properties.py#L301-L306

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?
  • [n/a] 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?
  • [s] Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review

  • 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

@codecov
Copy link

codecov bot commented Jul 5, 2021

Codecov Report

Merging #8291 (2d44a65) into master (441e16f) will decrease coverage by 0%.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #8291   +/-   ##
======================================
- Coverage      93%     92%   -0%     
======================================
  Files         213     213           
  Lines       13803   13804    +1     
======================================
- Hits        12803   12736   -67     
- Misses       1000    1068   +68     

Copy link
Contributor

@awaelchli awaelchli left a comment

Choose a reason for hiding this comment

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

it can also be found in tests/trainer/test_dataloaders, which will produce a warning

@carmocca
Copy link
Contributor Author

carmocca commented Jul 5, 2021

it can also be found in tests/trainer/test_dataloaders, which will produce a warning

That usage has been updated already, grep is not returning any other occurrences. Am I missing something?

@carmocca carmocca merged commit 7ddcdb2 into master Jul 5, 2021
@carmocca carmocca deleted the feat/deprecate-disable-validation branch July 5, 2021 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants