-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Conversation
@@ -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)) |
There was a problem hiding this comment.
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.
Excellent PR. I will look at it today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent
fix #7724
depends on #7723