Skip to content

Commit 1cfefa0

Browse files
authored
[Dy2St][PIR] Enable PIR ut test_sentiment and remove test_lac (#63192)
1 parent b4a712b commit 1cfefa0

File tree

5 files changed

+74
-742
lines changed

5 files changed

+74
-742
lines changed

test/dygraph_to_static/CMakeLists.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ set(SOT_ENVS SOT_LOG_LEVEL=0 COST_MODEL=False MIN_GRAPH_SIZE=0
77
STRICT_MODE=False)
88
set(GC_ENVS FLAGS_eager_delete_tensor_gb=0.0)
99

10-
list(REMOVE_ITEM TEST_OPS test_lac)
11-
# NOTE(Aurelius84): In case of Windows CI, if open ON_INFER, RWLOCK of Scope
12-
# will be removed and will cause some random failed in multi-thread.
13-
if(WITH_PYTHON)
14-
py_test_modules(test_lac MODULES test_lac)
15-
set_tests_properties(test_lac PROPERTIES TIMEOUT 120)
16-
endif()
17-
1810
if(WIN32 AND NOT WITH_GPU)
1911
# disable on Windows CPU CI for timeout
2012
list(REMOVE_ITEM TEST_OPS test_resnet_amp)
@@ -47,6 +39,7 @@ set_tests_properties(test_reinforcement_learning PROPERTIES TIMEOUT 120)
4739
set_tests_properties(test_bmn PROPERTIES TIMEOUT 300)
4840
set_tests_properties(test_loop PROPERTIES TIMEOUT 180)
4941
set_tests_properties(test_mnist_amp PROPERTIES TIMEOUT 240)
42+
set_tests_properties(test_sentiment PROPERTIES TIMEOUT 150)
5043

5144
if(TEST test_resnet_amp)
5245
set_tests_properties(test_resnet_amp PROPERTIES TIMEOUT 360)

test/dygraph_to_static/check_approval.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ def __init__(self, start: Location, end: Location):
130130
"test_error.py",
131131
"test_op_attr.py",
132132
"test_se_resnet.py",
133-
"test_lac.py",
134133
"test_convert_call.py",
135134
"test_local_cast.py",
136135
"test_origin_info.py",
@@ -156,18 +155,13 @@ def __init__(self, start: Location, end: Location):
156155
"test_logical.py",
157156
"test_inplace_assign.py",
158157
# TODO: Remove these files from the allow list after it's support PIR mode
159-
"test_list.py",
160158
"test_bmn.py",
161159
"test_tensor_hook.py",
162-
"test_container.py",
163160
"test_to_tensor.py",
164161
"test_warning.py",
165162
"test_typing.py",
166163
"test_gradname_parse.py",
167-
"test_cache_program.py",
168164
"test_for_enumerate.py",
169-
"test_lac.py",
170-
"test_sentiment.py",
171165
"test_save_load.py",
172166
"test_cinn.py",
173167
"test_declarative.py",

0 commit comments

Comments
 (0)