From 02afb925f7c294fb38d0402fac5caff6b49215e9 Mon Sep 17 00:00:00 2001 From: Ruibiao Chen Date: Thu, 1 Sep 2022 12:19:03 +0800 Subject: [PATCH] Reduce time cost for test_buffer_shared_memory_reuse_pass (#45619) --- .../tests/unittests/test_buffer_shared_memory_reuse_pass.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_buffer_shared_memory_reuse_pass.py b/python/paddle/fluid/tests/unittests/test_buffer_shared_memory_reuse_pass.py index f88f0506ddd..b52b6d4803f 100644 --- a/python/paddle/fluid/tests/unittests/test_buffer_shared_memory_reuse_pass.py +++ b/python/paddle/fluid/tests/unittests/test_buffer_shared_memory_reuse_pass.py @@ -103,7 +103,7 @@ class InplaceTestBase(unittest.TestCase): compiled_programs.append(compiled_prog) all_vars_name = self.get_all_vars(prog1) - repeated_var_names = all_vars_name * 2 + repeated_var_names = all_vars_name random.shuffle(repeated_var_names) # add some random for fetch_var in repeated_var_names: @@ -155,7 +155,7 @@ class InplaceTestBase(unittest.TestCase): places=places) compiled_programs.append(compiled_program) - repeated_var_names = self.get_all_vars(prog1) * 2 + repeated_var_names = self.get_all_vars(prog1) random.shuffle(repeated_var_names) # add some random for fetch_var in repeated_var_names: -- GitLab