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

Make Parallel.Do support sparse gradients #7754

Merged
merged 7 commits into from
Jan 24, 2018

Conversation

tonyyang-svail
Copy link

fix #7724

depends on #7723

@@ -270,6 +270,7 @@ def get_parameters(self):
for in_var_name in op.input(iname):
if in_var_name not in local_inputs:
params.append(in_var_name)
params = list(set(params))
Copy link
Author

Choose a reason for hiding this comment

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

@reyoung Duplications of the parameter names will be taken care by backward. parallel_do only needs a unique list.

@reyoung
Copy link
Collaborator

reyoung commented Jan 23, 2018

Excellent PR. I will look at it today.

reyoung
reyoung previously approved these changes Jan 23, 2018
Copy link
Collaborator

@reyoung reyoung left a comment

Choose a reason for hiding this comment

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

Excellent

@reyoung reyoung merged commit 9609c17 into PaddlePaddle:develop Jan 24, 2018
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.

Parallel.Do does not support sparse gradients
2 participants