“3e385efd606af0f8a047b1f0bd0a6c092cf3b532”上不存在“data_backup/1.leetcode/1099-小于 K 的两数之和/solution.json”
提交 253441b5 编写于 作者: Y Yancey1989

fix duplicate lr op after distribute transpiler

上级 41a9146d
...@@ -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.
先完成此消息的编辑!
想要评论请 注册