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

UserWarning: Your validation_step returned None is issued when using DDP #6137

Closed
dpieczynski opened this issue Feb 22, 2021 · 0 comments · Fixed by #6139
Closed

UserWarning: Your validation_step returned None is issued when using DDP #6137

dpieczynski opened this issue Feb 22, 2021 · 0 comments · Fixed by #6139
Assignees
Labels
bug Something isn't working help wanted Open to be worked on

Comments

@dpieczynski
Copy link

🐛 Bug

When using DDP with the validation_step function that doesn't return anything the following warning is printed (Lightning 1.2.0):

pytorch_lightning/utilities/distributed.py:50: UserWarning: Your validation_step returned None. Did you forget to return an output?

This doesn't seem right, as documentation, as far as I'm aware, never mentions a need for doing so.

To Reproduce

Run .fit(...) on a Trainer created with accelerator='ddp'.

Environment

  • PyTorch Version (e.g., 1.0): 1.7.1
  • OS (e.g., Linux): Linux
  • How you installed PyTorch (conda, pip, source): pip
  • Python version: 3.8.6
@dpieczynski dpieczynski added bug Something isn't working help wanted Open to be worked on labels Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Open to be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants