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
Hi, Janne
The GatherLayer module in gather.py is smart and efficient. I really appreciate this module.
I almost understand most of the functions of the codes but still confuse at one point.
line 19 of SimCLR/simclr/modules/gather.py
grad_out[:] = grads[dist.get_rank()]
Would you mind explaining it in more detail?
The text was updated successfully, but these errors were encountered:
Basically, the gradients in each device would be the local gradients. Look at this blog post: https://amsword.medium.com/gradient-backpropagation-with-torch-distributed-all-gather-9f3941a381f8
Sorry, something went wrong.
No branches or pull requests
Hi, Janne
The GatherLayer module in gather.py is smart and efficient. I really appreciate this module.
I almost understand most of the functions of the codes but still confuse at one point.
line 19 of SimCLR/simclr/modules/gather.py
Would you mind explaining it in more detail?
The text was updated successfully, but these errors were encountered: