From b428c1eaeda9a5412a31eb35646e18d44f142257 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Fri, 17 Aug 2018 16:09:58 +0800 Subject: [PATCH] fix dis transpile test --- python/paddle/fluid/tests/unittests/test_dist_transpiler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_dist_transpiler.py b/python/paddle/fluid/tests/unittests/test_dist_transpiler.py index f8026ae9425..8af6574434f 100644 --- a/python/paddle/fluid/tests/unittests/test_dist_transpiler.py +++ b/python/paddle/fluid/tests/unittests/test_dist_transpiler.py @@ -95,8 +95,9 @@ class TranspilerTest(unittest.TestCase): def test_transpiler(self): main = fluid.Program() startup = fluid.Program() - with fluid.program_guard(main, startup): - self.transpiler_test_impl() + with fluid.unique_name.guard(): + with fluid.program_guard(main, startup): + self.transpiler_test_impl() class TestBasicModel(TranspilerTest): -- GitLab