Skip to content

Commit

Permalink
fix the bug, test=develop (#33996)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilong12 authored Jul 8, 2021
1 parent 05643dc commit 6a36977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/fluid/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4897,7 +4897,7 @@ def _rename_gradient_var_name(self, block):
input_names = op.input_arg_names
output_names = op.output_arg_names
in_out_names = input_names + output_names
if op.type == 'cast': continue
if op.type == 'cast' or op.type == "c_sync_comm_stream": continue
# append "MERGED" to the names of parameter gradients,
# and mofify the op_role_var attribute (by rename_arg func).
for name in in_out_names:
Expand Down

0 comments on commit 6a36977

Please sign in to comment.