-
Notifications
You must be signed in to change notification settings - Fork 24
fix: make a seed respect to distributed settings #60
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
Conversation
if rank > 0: | ||
# Ensure that only rank 0 download the dataset | ||
idist.barrier() |
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.
Sorry for delay with the review @ydcjeff . Maybe we could hide these barriers inside get_datasets
. I also realized that here it should be local_rank == 0
and not rank == 0
as in case multi-node case the application wont download the data for other nodes.
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.
OK! Then Ignite examples need a fix too
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.
I see, that can be possible. Thanks for pointing out! Can you please open an issue and someone could fix it.
if rank == 0: | ||
if isinstance(logger_handler, WandBLogger): | ||
# why handle differently for wandb ? | ||
# See : https://github.com/pytorch/ignite/issues/1894 | ||
logger_handler.finish() | ||
elif logger_handler: | ||
logger_handler.close() |
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.
Maybe, we can say that the code generator aims ignite nightly version and it will be also in the stable version ?
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.
We are currently testing with ignite v0.4.4, we will update that once there is a new release
fix #61