-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
When no val dataloader is present and user implements validation_step need to throw useful error #508
Comments
You have to add the val_dataloader method: @pl.data_loader
def val_dataloader(self):
# REQUIRED
return self.other_dataloader |
@ILYEEV thanks for pointing out though. We should have a nicer user experience for this error. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@ILYEEV are you interested in sending PR for a better warning? maybe even do this kind of check before starting the training... something like self-diagnostic? |
This is fixed on master.
This issue can be closed. |
I have been using pytorch before, but for performance I decided to use lightning. I rewrote my pytorch into a pl.LightningModule class. While training for the first epoch, everything seems fine, but when it starts validation there is a TypeError: 'NoneType' object is not iterable.
Epoch 1: 100%|████████████████████████| 6514/6514 [01:27<00:00, 71.17batch/s, batch_nb=6513, gpu=0, loss=1.099, v_nb=7]
Validating: 0batch [00:00, ?batch/s]
The text was updated successfully, but these errors were encountered: