Skip to content

ImportError: cannot import name 'rank_zero_only' from 'pytorch_lightning.utilities.distributed' #4111

Answered by pbonazzi
rexroth0619 asked this question in Q&A
Discussion options

You must be logged in to vote

The function was moved to a new script with a different name . Try to import it as :

from pytorch_lightning.utilities.rank_zero import rank_zero_only

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@thekahal
Comment options

@visoutre
Comment options

@limitsnova
Comment options

@thekahal
Comment options

@limitsnova
Comment options

Answer selected by rexroth0619
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants