From f0811bb7dbcbda67793b5a6c1b520ca0adb8c2ac Mon Sep 17 00:00:00 2001 From: Ruibiao Chen Date: Wed, 1 Feb 2023 14:48:02 +0800 Subject: [PATCH] Fix errors for test_standalone_custom_stream (#50103) --- .../standalone_executor/test_standalone_custom_stream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_custom_stream.py b/python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_custom_stream.py index 116aa60d052..4126f84ed1e 100644 --- a/python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_custom_stream.py +++ b/python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_custom_stream.py @@ -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) -- GitLab