Skip to content

Commit

Permalink
del stride test (#57833)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghuancoder authored Oct 8, 2023
1 parent ce04c5e commit c13609a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 55 deletions.
8 changes: 0 additions & 8 deletions test/autograd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,8 @@ foreach(TEST_OP ${TEST_OPS})
py_test_modules(${TEST_OP} MODULES ${TEST_OP} ENVS ${GC_ENVS})
endforeach()

set(STRIED_TESTS test_autograd_dynamic)

foreach(STRIED_TEST ${STRIED_TESTS})
py_test_modules(${STRIED_TEST}_with_stride MODULES ${STRIED_TEST} ENVS
FLAGS_use_stride_kernel=true)
endforeach()

set_tests_properties(test_autograd_dynamic PROPERTIES TIMEOUT 100)
set_tests_properties(test_autograd_functional_dynamic PROPERTIES TIMEOUT 200)
set_tests_properties(test_autograd_dynamic_with_stride PROPERTIES TIMEOUT 100)
set_tests_properties(test_autograd_functional_static PROPERTIES TIMEOUT 160)
set_tests_properties(test_minimize PROPERTIES TIMEOUT 60)
if(NOT WIN32)
Expand Down
9 changes: 0 additions & 9 deletions test/dygraph_to_static/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,13 @@ foreach(TEST_OP ${TEST_OPS})
endif()
endforeach()

set(STRIED_TESTS test_bert test_lstm test_ptb_lm_v2 test_slice)

foreach(STRIED_TEST ${STRIED_TESTS})
py_test_modules(${STRIED_TEST}_with_stride MODULES ${STRIED_TEST} ENVS
${GC_ENVS} FLAGS_use_stride_kernel=true)
set_tests_properties(${STRIED_TEST}_with_stride PROPERTIES TIMEOUT 120)
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 150)
set_tests_properties(test_cycle_gan PROPERTIES TIMEOUT 150)
set_tests_properties(test_bert PROPERTIES TIMEOUT 180)
set_tests_properties(test_bert_with_stride PROPERTIES TIMEOUT 120)
set_tests_properties(test_basic_api_transformation PROPERTIES TIMEOUT 120)
set_tests_properties(test_reinforcement_learning PROPERTIES TIMEOUT 120)
set_tests_properties(test_transformer PROPERTIES TIMEOUT 200)
Expand Down
34 changes: 0 additions & 34 deletions test/legacy_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1410,43 +1410,9 @@ foreach(IR_OP_TEST ${NEW_IR_OP_RELAXED_TESTS})
endif()
endforeach()

set(STRIED_TESTS
test_complex_getitem
test_complex_grad_accumulated
test_complex_simplenet
test_conv1d_layer
test_conv1d_transpose_layer
test_conv2d_layer
test_diagonal_op
test_imperative_ocr_attention_model
test_imperative_ptb_rnn
test_imperative_ptb_rnn_sorted_gradient
test_initializer
test_inplace
test_real_imag_op
test_reshape_op
test_set_value_op
test_signal
test_slice_op
test_solve_op
test_squeeze_op
test_squeeze2_op
test_unbind_op
test_unsqueeze_op
test_unsqueeze2_op
test_var_base)

foreach(STRIED_TEST ${STRIED_TESTS})
py_test_modules(${STRIED_TEST}_with_stride MODULES ${STRIED_TEST} ENVS
FLAGS_use_stride_kernel=true)
set_tests_properties(${STRIED_TEST}_with_stride PROPERTIES TIMEOUT 120)
endforeach()

py_test_modules(test_stride MODULES test_stride ENVS
FLAGS_use_stride_kernel=true)

set_tests_properties(test_slice_op_with_stride PROPERTIES TIMEOUT 300)

if((WITH_ROCM OR WITH_GPU) AND NOT WIN32)
# These UTs are specially designed for FleetExecutor
set_tests_properties(
Expand Down
4 changes: 0 additions & 4 deletions test/white_list/new_ir_op_test_white_list
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ test_prior_box_op
test_psroi_pool_op
test_put_along_axis_op
test_range
test_real_imag_op_with_stride
test_reduce_op
test_reduce_op_static_build
test_reshape_op
Expand All @@ -185,7 +184,6 @@ test_solve_op
test_spectral_norm_op
test_spectral_op
test_squared_l2_norm_op
test_squeeze_op_with_stride
test_svd_op
test_take_along_axis_op
test_temporal_shift_op
Expand All @@ -197,13 +195,11 @@ test_tril_indices_op
test_trilinear_interp_v2_op
test_triu_indices_op
test_trunc_op
test_unbind_op_with_stride
test_unfold_op
test_unique_consecutive_op
test_unpool3d_op
test_unpool_op
test_unsqueeze2_op
test_unsqueeze_op_with_stride
test_update_loss_scaling_op
test_update_loss_scaling_op_static_build
test_viterbi_decode_op
Expand Down

0 comments on commit c13609a

Please sign in to comment.