提交 38cf5531 编写于 作者: X Xin Pan

fix distributed

test=develop
上级 d5d09672
......@@ -1717,8 +1717,8 @@ to transpile() call.")
lr_ops = []
block = self.origin_program.global_block()
for op in block.ops:
if int(op.attr(RPC_OP_ROLE_ATTR_NAME)) == int(
LR_SCHED_OP_ROLE_ATTR_VALUE):
if int(op.attr(RPC_OP_ROLE_ATTR_NAME)) | int(
LR_SCHED_OP_ROLE_ATTR_VALUE) > 0:
lr_ops.append(op)
log("append lr op: ", op.type)
return lr_ops
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册