未验证 提交 9bc0c23b 编写于 作者: Y Yancey 提交者: GitHub

Merge pull request #9901 from Yancey1989/fix_duplicate_lr_op

Fix duplicate lr op after distribute transpiler
...@@ -1115,4 +1115,6 @@ class DistributeTranspiler: ...@@ -1115,4 +1115,6 @@ class DistributeTranspiler:
for op2 in find_ops: for op2 in find_ops:
if ufind.is_connected(op1, op2): if ufind.is_connected(op1, op2):
lr_ops.append(op1) lr_ops.append(op1)
# we only need to append op for once
break
return lr_ops return lr_ops
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册