From d90c121534e48824343e4056a9650ef776bcdab8 Mon Sep 17 00:00:00 2001 From: liym27 <33742067+liym27@users.noreply.github.com> Date: Tue, 14 Jan 2020 11:58:02 +0800 Subject: [PATCH] Revert "open test_parallel_executor_fetch_feed for PR_Windows_CI. test=develop (#22020)" (#22253) This reverts commit c7b03d308c420dfd6a96783f679928bbacf59ab2. --- python/paddle/fluid/tests/unittests/CMakeLists.txt | 6 +++++- .../tests/unittests/test_parallel_executor_fetch_feed.py | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/unittests/CMakeLists.txt b/python/paddle/fluid/tests/unittests/CMakeLists.txt index aad7649777f..e9d61a3ce05 100644 --- a/python/paddle/fluid/tests/unittests/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/CMakeLists.txt @@ -160,6 +160,7 @@ list(REMOVE_ITEM TEST_OPS test_warpctc_op) list(REMOVE_ITEM TEST_OPS test_parallel_executor_crf) list(REMOVE_ITEM TEST_OPS test_data_norm_op) list(REMOVE_ITEM TEST_OPS test_parallel_executor_crf_auto_growth) +list(REMOVE_ITEM TEST_OPS test_parallel_executor_fetch_feed) list(REMOVE_ITEM TEST_OPS test_parallel_executor_transformer) list(REMOVE_ITEM TEST_OPS test_parallel_executor_transformer_auto_growth) list(REMOVE_ITEM TEST_OPS test_bilinear_interp_op) @@ -306,8 +307,11 @@ py_test_modules(test_fuse_bn_act_pass MODULES test_fuse_bn_act_pass ENVS FLAGS_c if(NOT WIN32) py_test_modules(test_ir_memory_optimize_transformer MODULES test_ir_memory_optimize_transformer) + # FIXME(zcd): temporally disable test_parallel_executor_fetch_feed in Windows CI because of the random failure. + py_test_modules(test_parallel_executor_fetch_feed MODULES test_parallel_executor_fetch_feed) + set_tests_properties(test_parallel_executor_fetch_feed PROPERTIES TIMEOUT 450) endif() -set_tests_properties(test_parallel_executor_fetch_feed PROPERTIES TIMEOUT 450) + set_tests_properties(test_parallel_executor_seresnext_base_cpu PROPERTIES TIMEOUT 900) set_tests_properties(test_parallel_executor_seresnext_with_reduce_cpu PROPERTIES TIMEOUT 750) set_tests_properties(test_parallel_executor_seresnext_with_fuse_all_reduce_cpu PROPERTIES TIMEOUT 750) diff --git a/python/paddle/fluid/tests/unittests/test_parallel_executor_fetch_feed.py b/python/paddle/fluid/tests/unittests/test_parallel_executor_fetch_feed.py index 1de0ebd0ccf..052edac0ea7 100644 --- a/python/paddle/fluid/tests/unittests/test_parallel_executor_fetch_feed.py +++ b/python/paddle/fluid/tests/unittests/test_parallel_executor_fetch_feed.py @@ -68,7 +68,10 @@ class TestFetchAndFeed(unittest.TestCase): exe = fluid.Executor(place) exe.run(startup) + #FIXME force disable enable_inplace and memory_optimize to pass the unittest build_strategy = fluid.BuildStrategy() + build_strategy.enable_inplace = False + build_strategy.memory_optimize = False exec_strategy = fluid.ExecutionStrategy() exec_strategy.use_experimental_executor = use_faster_executor exec_strategy.num_threads = num_threads -- GitLab