Is compute() in DDP always called exclusively on rank zero? #1835
Unanswered
astrocyted
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to wrap my metric using the torchmetrics metric class and I just wanted to make sure if the compute is performed only on a single process (rank_zero) when in DDP mode and after gathering. Of course it doesnt make any sense to do it across all processes being extremely redundant but i ask because i couldn't find explicitly in the code that compute is restricted to a single process. Thanks for clarifying.
Beta Was this translation helpful? Give feedback.
All reactions