-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Enable val/test loop disabling + datamodule tests #2692
Conversation
Nice! It solves the problem of commenting out the |
Exactly!! I have it a bit wrong so far here though. Test step should still raise misconfiguration but only if |
Hello @nateraw! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-07-25 16:43:11 UTC |
Features:
future
|
if not self.reload_dataloaders_every_epoch: | ||
self.reset_train_dataloader(model) | ||
self.reset_val_dataloader(model) | ||
|
||
if model.val_dataloader is not None: | ||
self.reset_val_dataloader(model) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like val dataloaders get reloaded every epoch no matter the setting of self.reload_dataloaders_every_epoch
. Isn't this a bug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that’s how it was before no? i think that was intended this way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there an issue about it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's intended, ok. Just the name of the flag is a bit misleading then :)
is there an issue about it?
There does not seem to be one.
What does this PR do?
This updates
MisconfigurationException
s to be warnings instead within trainer when you have dataloaders/defined steps for val/test that aren't configured correctly. Just because you have a validation dataloader doesn't mean you want to use it, and just because your model defines a val_step doesn't mean you should need to provide a validation dataset.CC: @awaelchli we discussed something about this the other day 😄
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃