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

Add allreduce method to communicator interface with implementation #237

Merged
merged 1 commit into from
May 8, 2018

Conversation

kuenishi
Copy link
Member

This is based on #235 and addresses #234 .

@kuenishi kuenishi added this to the v1.3.0 milestone Apr 17, 2018
xs = x.astype(np.float32)
xs = self.communicator.allreduce(xs)

sum = reduce(lambda a, b: a + b,
Copy link
Member

Choose a reason for hiding this comment

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

Why do you use reduce instead of sum?

Copy link
Member Author

Choose a reason for hiding this comment

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

I just didn't know that and updated.

@kuenishi kuenishi force-pushed the allreduce-ndarray branch 2 times, most recently from 19d076e to 6b15ce5 Compare May 7, 2018 07:32
@kuenishi kuenishi merged commit b83398d into chainer:master May 8, 2018
@kuenishi kuenishi deleted the allreduce-ndarray branch May 8, 2018 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants