未验证 提交 f0811bb7 编写于 作者: R Ruibiao Chen 提交者: GitHub

Fix errors for test_standalone_custom_stream (#50103)

上级 226a6567
......@@ -50,10 +50,10 @@ class TestCustomStream(unittest.TestCase):
ops = prog.global_block().ops
for op_index in op_index_for_stream1:
ops[op_index].dist_attr.execution_stream = "s1"
ops[op_index].dist_attr.stream_priority = -1
ops[op_index].dist_attr.stream_priority = 0
for op_index in op_index_for_stream2:
ops[op_index].dist_attr.execution_stream = "s2"
ops[op_index].dist_attr.stream_priority = -2
ops[op_index].dist_attr.stream_priority = -1
def run_program(self, apply_custom_stream=False):
paddle.seed(2022)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册