From 3c8eeb5d38c3a23f9aeec5d3d85238a3003432ad Mon Sep 17 00:00:00 2001 From: Aurelius84 Date: Tue, 7 Sep 2021 13:03:33 +0800 Subject: [PATCH] [Dy2Stat]Open test_resnet_amp on Windows (#35323) * open test_resnet_amp on Windows * disable on Windows CPU CI for timeout * disable on Windows CPU CI for timeout * fix code style --- .../fluid/tests/unittests/dygraph_to_static/CMakeLists.txt | 7 ++++--- tools/windows/run_unittests.sh | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/dygraph_to_static/CMakeLists.txt b/python/paddle/fluid/tests/unittests/dygraph_to_static/CMakeLists.txt index 250ffcc48c3..9ac1c26c634 100644 --- a/python/paddle/fluid/tests/unittests/dygraph_to_static/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/dygraph_to_static/CMakeLists.txt @@ -10,6 +10,10 @@ if(NOT ON_INFER) set_tests_properties(test_lac PROPERTIES TIMEOUT 120) endif() +if(WIN32 AND NOT WITH_GPU) + list(REMOVE_ITEM TEST_OPS test_resnet_amp) # disable on Windows CPU CI for timeout +endif() + foreach(TEST_OP ${TEST_OPS}) py_test_modules(${TEST_OP} MODULES ${TEST_OP} ENVS ${GC_ENVS}) endforeach(TEST_OP) @@ -32,6 +36,3 @@ if(NOT WIN32) set_tests_properties(test_tsm PROPERTIES TIMEOUT 900) #set_tests_properties(test_resnet PROPERTIES TIMEOUT 120) endif() -#if(WIN32) -# set_tests_properties(test_resnet PROPERTIES TIMEOUT 300) -#endif() diff --git a/tools/windows/run_unittests.sh b/tools/windows/run_unittests.sh index 05365f028f5..88c8ba3dab9 100644 --- a/tools/windows/run_unittests.sh +++ b/tools/windows/run_unittests.sh @@ -96,7 +96,6 @@ disable_wincpu_test="^jit_kernel_test$|\ ^test_bmn$|\ ^test_mobile_net$|\ ^test_resnet_v2$|\ -^test_resnet_amp$|\ ^test_build_strategy$|\ ^test_se_resnet$|\ ^disable_wincpu_test$" -- GitLab