We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The LOCAL_RANK environment variable can be a string. This causes checks in the rank_zero_only decorator to fail here: https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pytorch_lightning/utilities/distributed.py#L11
LOCAL_RANK
We should cast LOCAL_RANK to an int both in the rank_zero_only check as well as in the trainer here: https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pytorch_lightning/trainer/trainer.py#L385
Then the decorator works as we expected
The text was updated successfully, but these errors were encountered:
Hi! thanks for your contribution!, great first issue!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
🐛 Bug
The
LOCAL_RANK
environment variable can be a string. This causes checks in the rank_zero_only decorator to fail here: https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pytorch_lightning/utilities/distributed.py#L11Expected behavior
We should cast
LOCAL_RANK
to an int both in the rank_zero_only check as well as in the trainer here: https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pytorch_lightning/trainer/trainer.py#L385Then the decorator works as we expected
The text was updated successfully, but these errors were encountered: