Skip to content
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

Pytorch allgather support #320

Merged
merged 9 commits into from
Sep 14, 2020
Merged

Pytorch allgather support #320

merged 9 commits into from
Sep 14, 2020

Conversation

marwage
Copy link
Collaborator

@marwage marwage commented Sep 14, 2020

No description provided.

const KungFu_Datatype dtype = from(_torch_tensor_types.at(type));
const int np = _default_peer->Size();
std::vector<char> send_buffer(data_size(input));
std::vector<char> receive_buffer(data_size(input) * np);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to call const int np = _default_peer->Size(); here:
std::vector<char> receive_buffer(data_size(output));

@marwage marwage merged commit c9852d5 into master Sep 14, 2020
@marwage marwage deleted the mw-torch-allgather branch November 24, 2021 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants