Skip to content

Commit

Permalink
Merge pull request #9901 from Yancey1989/fix_duplicate_lr_op
Browse files Browse the repository at this point in the history
Fix duplicate lr op after distribute transpiler
  • Loading branch information
Yancey authored Apr 13, 2018
2 parents c1bf06f + 253441b commit 9bc0c23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/paddle/fluid/distribute_transpiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1115,4 +1115,6 @@ def _get_lr_ops(self):
for op2 in find_ops:
if ufind.is_connected(op1, op2):
lr_ops.append(op1)
# we only need to append op for once
break
return lr_ops

0 comments on commit 9bc0c23

Please sign in to comment.