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

fix distribute_transpiler #11326

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions python/paddle/fluid/transpiler/distribute_transpiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def _update_dist_lookup_table_vars(self, param_list, grad_list,
dtype=table_grad_var.dtype)
for index in range(len(self.pserver_endpoints))
]
return param_list, grad_list

def _init_splited_vars(self, slice_var_up):
# update these mappings for further transpile:
Expand All @@ -199,8 +200,8 @@ def _init_splited_vars(self, slice_var_up):
grad_list.append(g)
param_grad_set.add(g.name)

self._update_dist_lookup_table_vars(param_list, grad_list,
self.params_grads)
param_list, grad_list = self._update_dist_lookup_table_vars(
param_list, grad_list, self.params_grads)

if slice_var_up:
# when we slice var up into blocks, we will slice the var according to
Expand Down