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 250ffcc48c302538825b79c0ff734f5b0a5128ce..9ac1c26c63483b80b6710f812a17eac11ddff7cd 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 05365f028f51d9a04ce238a9fb5c9bf88132cf1a..88c8ba3dab9f6f05a3e164f2ecf7e9a74969fa80 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$"