From c1f2c52cfcae688b64948e2f9b6c1ffc3cecee7e Mon Sep 17 00:00:00 2001 From: yuehuayingxueluo <867460659@qq.com> Date: Fri, 10 Feb 2023 15:47:16 +0800 Subject: [PATCH] fix bugs about ParallelEnv (#50405) --- .../fluid/tests/unittests/auto_parallel/test_pass_base_list.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/auto_parallel/test_pass_base_list.py b/python/paddle/fluid/tests/unittests/auto_parallel/test_pass_base_list.py index ea3d36e3579..79db7147434 100644 --- a/python/paddle/fluid/tests/unittests/auto_parallel/test_pass_base_list.py +++ b/python/paddle/fluid/tests/unittests/auto_parallel/test_pass_base_list.py @@ -21,7 +21,6 @@ from get_gpt_model import FakeDataset, generate_model import paddle from paddle.distributed.fleet import auto -from paddle.fluid.dygraph.parallel import ParallelEnv sys.path.append("..") from test_sparse_addmm_op import get_cuda_version @@ -55,7 +54,7 @@ class TestFusedPassBaseList(unittest.TestCase): paddle.seed(2021) np.random.seed(2021) random.seed(2021) - place = paddle.fluid.CUDAPlace(ParallelEnv().dev_id) + place = paddle.fluid.CUDAPlace(paddle.distributed.ParallelEnv().dev_id) engine._executor = paddle.static.Executor(place) def get_engine(self, use_fused_passes=False, fused_passes_list=[]): -- GitLab