Added idist.one_rank_first method#2926
Conversation
vfdev-5
left a comment
There was a problem hiding this comment.
Thanks for the PR @AlexanderChaptykov
I left few comments in the code to address.
Once we agree with the API, names etc let's also write a test and docstring.
|
@vfdev-5 PR updated |
vfdev-5
left a comment
There was a problem hiding this comment.
Thanks for the update @AlexanderChaptykov !
I left few comments and also CI is all failing : https://github.com/pytorch/ignite/actions/runs/4793848979/jobs/8526673730?pr=2926
please check
|
@vfdev-5 looks like we pass rank=1 with world_size=1 |
Let's use WORLD_SIZE env var, check the tests codebase how it is done |
|
Also, we may want to update this example: ignite/examples/contrib/cifar10/main.py Lines 212 to 233 in 7bafab7 |
idist.one_process_first methodidist.one_rank_first method
vfdev-5
left a comment
There was a problem hiding this comment.
Thanks for your work on this PR @AlexanderChaptykov
Hopefully collective effort with myself and @sadra-barikbin we can land something better.
Fixes #2923
Description:
idist.one_rank_firstcontext manager