Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dy2St] Increase test_transformer and test_mobile_net ut time #60829

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/dygraph_to_static/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ if(NOT WITH_GPU)
list(REMOVE_ITEM TEST_OPS test_build_strategy)
list(REMOVE_ITEM TEST_OPS test_bert)
list(REMOVE_ITEM TEST_OPS test_transformer)
list(REMOVE_ITEM TEST_OPS test_mobile_net)
endif()

foreach(TEST_OP ${TEST_OPS})
Expand All @@ -39,7 +40,6 @@ endforeach()
set_tests_properties(test_se_resnet PROPERTIES TIMEOUT 900)
set_tests_properties(test_yolov3 PROPERTIES TIMEOUT 900 LABELS
"RUN_TYPE=EXCLUSIVE")
set_tests_properties(test_mobile_net PROPERTIES TIMEOUT 120)
set_tests_properties(test_seq2seq PROPERTIES TIMEOUT 420)
set_tests_properties(test_cycle_gan PROPERTIES TIMEOUT 150)
set_tests_properties(test_basic_api_transformation PROPERTIES TIMEOUT 240)
Expand All @@ -52,13 +52,14 @@ endif()

if(APPLE)
set_tests_properties(test_bmn PROPERTIES TIMEOUT 300)
set_tests_properties(test_mobile_net PROPERTIES TIMEOUT 300)
endif()

if(WITH_GPU)
set_tests_properties(test_train_step_resnet18_sgd PROPERTIES TIMEOUT 240)
set_tests_properties(test_train_step_resnet18_adam PROPERTIES TIMEOUT 240)
set_tests_properties(test_bert PROPERTIES TIMEOUT 240)
set_tests_properties(test_transformer PROPERTIES TIMEOUT 240)
set_tests_properties(test_mobile_net PROPERTIES TIMEOUT 240)
endif()

# Legacy IR only tests for dygraph_to_static
Expand Down
4 changes: 2 additions & 2 deletions test/dygraph_to_static/test_mobile_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from dygraph_to_static_utils import (
Dy2StTestBase,
enable_to_static_guard,
test_legacy_and_pt_and_pir,
test_legacy_and_pir,
)
from predictor_utils import PredictorTools

Expand Down Expand Up @@ -738,7 +738,7 @@ def assert_same_predict(self, model_name):
err_msg=f'inference_pred_res:\n {predictor_pre}\n, st_pre: \n{st_pre}.',
)

@test_legacy_and_pt_and_pir
@test_legacy_and_pir
def test_mobile_net(self):
# MobileNet-V1
self.assert_same_loss("MobileNetV1")
Expand Down