From 3ccc0a2f5e059772565d1411372148035e337b10 Mon Sep 17 00:00:00 2001 From: wanghuancoder Date: Thu, 29 Oct 2020 11:40:35 +0800 Subject: [PATCH] enable test_parallel_executor_fetch_isolated_var (#28219) * enable test_parallel_executor_fetch_isolated_var, test=develop * add enable_static, test=develop * set test_parallel_executor_fetch_isolated_var RUN_TYPE=DIST, develop=test --- python/paddle/fluid/tests/unittests/CMakeLists.txt | 2 +- .../unittests/test_parallel_executor_fetch_isolated_var.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/unittests/CMakeLists.txt b/python/paddle/fluid/tests/unittests/CMakeLists.txt index 4cd9d9e530d..52950a4d92a 100644 --- a/python/paddle/fluid/tests/unittests/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/CMakeLists.txt @@ -339,7 +339,6 @@ list(REMOVE_ITEM TEST_OPS test_conv3d_transpose_op) # disable this unittest temporarily list(REMOVE_ITEM TEST_OPS test_imperative_data_loader_exception) list(REMOVE_ITEM TEST_OPS test_sampling_id_op) -list(REMOVE_ITEM TEST_OPS test_parallel_executor_fetch_isolated_var) if (APPLE OR WIN32) list(REMOVE_ITEM TEST_OPS test_dataset) @@ -587,6 +586,7 @@ set_tests_properties(test_parallel_executor_crf test_sync_batch_norm_op test_inp test_parallel_executor_seresnext_with_reduce_gpu test_parallel_executor_seresnext_with_fuse_all_reduce_gpu test_parallel_executor_profiler + test_parallel_executor_fetch_isolated_var PROPERTIES LABELS "RUN_TYPE=DIST") if(NOT WIN32 AND NOT APPLE) diff --git a/python/paddle/fluid/tests/unittests/test_parallel_executor_fetch_isolated_var.py b/python/paddle/fluid/tests/unittests/test_parallel_executor_fetch_isolated_var.py index 13932238705..d64aa510f4e 100644 --- a/python/paddle/fluid/tests/unittests/test_parallel_executor_fetch_isolated_var.py +++ b/python/paddle/fluid/tests/unittests/test_parallel_executor_fetch_isolated_var.py @@ -16,6 +16,7 @@ import unittest import numpy as np import six import paddle.fluid as fluid +import paddle def enable_parallel_ssa_executor(enabled=True): @@ -57,6 +58,7 @@ class TestParallelExecutorFetchIsolatedVarBase(unittest.TestCase): def run_impl(self, use_gpu, dev_cnt, is_training, use_experimental_executor, use_parallel_ssa_executor): + paddle.enable_static() enable_parallel_ssa_executor(use_parallel_ssa_executor) if fluid.is_compiled_with_cuda(): -- GitLab