CMakeLists.txt 14.5 KB
Newer Older
1 2
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
3

4
foreach(src ${TEST_OPS})
5
  py_test(${src} SRCS ${src}.py)
6
endforeach()
7

8
add_subdirectory(unittests)
9
add_subdirectory(book)
X
XieYunshen 已提交
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221
set_tests_properties(test_sync_batch_norm_op PROPERTIES TIMEOUT 16)
set_tests_properties(test_cross_op PROPERTIES TIMEOUT 30)
set_tests_properties(test_parallel_dygraph_sync_batch_norm PROPERTIES TIMEOUT 25)
set_tests_properties(test_imperative_lod_tensor_to_selected_rows PROPERTIES TIMEOUT 41)
set_tests_properties(test_quant2_int8_mobilenetv1_mkldnn PROPERTIES TIMEOUT 14)
set_tests_properties(test_lstm_op PROPERTIES TIMEOUT 12)
set_tests_properties(test_imperative_star_gan_with_gradient_penalty PROPERTIES TIMEOUT 21)
set_tests_properties(test_warpctc_op PROPERTIES TIMEOUT 32)
set_tests_properties(test_bicubic_interp_op PROPERTIES TIMEOUT 30)
set_tests_properties(test_graph PROPERTIES TIMEOUT 16)
set_tests_properties(convert_model2dot_ernie PROPERTIES TIMEOUT 37)
set_tests_properties(test_deformable_conv_op PROPERTIES TIMEOUT 16)
set_tests_properties(test_collective_broadcast_api PROPERTIES TIMEOUT 28)
set_tests_properties(test_nearest_interp_op PROPERTIES TIMEOUT 39)
set_tests_properties(test_profiler PROPERTIES TIMEOUT 23)
set_tests_properties(test_analyzer_mobilenet_transpose PROPERTIES TIMEOUT 22)
set_tests_properties(test_inplace_softmax_with_cross_entropy PROPERTIES TIMEOUT 16)
set_tests_properties(test_quantization_pass PROPERTIES TIMEOUT 37)
set_tests_properties(test_cross_entropy2_op PROPERTIES TIMEOUT 34)
set_tests_properties(test_analyzer_resnet50 PROPERTIES TIMEOUT 62)
set_tests_properties(test_sequence_conv PROPERTIES TIMEOUT 37)
set_tests_properties(test_fetch_unmerged PROPERTIES TIMEOUT 17)
set_tests_properties(test_gru_unit_op PROPERTIES TIMEOUT 33)
set_tests_properties(test_activation_nn_grad PROPERTIES TIMEOUT 39)
set_tests_properties(test_recognize_digits PROPERTIES TIMEOUT 38)
set_tests_properties(test_empty_op PROPERTIES TIMEOUT 33)
set_tests_properties(test_quant2_int8_resnet50_channelwise_mkldnn PROPERTIES TIMEOUT 29)
set_tests_properties(test_parallel_executor_transformer PROPERTIES TIMEOUT 44)
set_tests_properties(test_elementwise_div_op PROPERTIES TIMEOUT 19)
set_tests_properties(test_beam_search_decoder PROPERTIES TIMEOUT 22)
set_tests_properties(selected_rows_test PROPERTIES TIMEOUT 46)
set_tests_properties(test_regularizer_api PROPERTIES TIMEOUT 101)
set_tests_properties(test_multiclass_nms_op PROPERTIES TIMEOUT 15)
set_tests_properties(test_ir_memory_optimize_nlp PROPERTIES TIMEOUT 56)
set_tests_properties(test_add_reader_dependency PROPERTIES TIMEOUT 31)
set_tests_properties(trt_mobilenet_test PROPERTIES TIMEOUT 30)
set_tests_properties(test_analyzer_ner PROPERTIES TIMEOUT 15)
set_tests_properties(test_bilateral_slice_op PROPERTIES TIMEOUT 17)
set_tests_properties(test_collective_allreduce_api PROPERTIES TIMEOUT 28)
set_tests_properties(trt_resnext_test PROPERTIES TIMEOUT 41)
set_tests_properties(test_buffer_shared_memory_reuse_pass PROPERTIES TIMEOUT 36)
set_tests_properties(test_fuse_relu_depthwise_conv_pass PROPERTIES TIMEOUT 33)
set_tests_properties(test_analyzer_int8_resnet50 PROPERTIES TIMEOUT 39)
set_tests_properties(test_analyzer_int8_mobilenet_ssd PROPERTIES TIMEOUT 22)
set_tests_properties(test_fleet_util PROPERTIES TIMEOUT 12)
set_tests_properties(test_imperative_transformer_sorted_gradient PROPERTIES TIMEOUT 33)
set_tests_properties(test_matmul_op PROPERTIES TIMEOUT 15)
set_tests_properties(test_mobile_net PROPERTIES TIMEOUT 29)
set_tests_properties(test_quant_int8_mobilenetv2_mkldnn PROPERTIES TIMEOUT 32)
set_tests_properties(test_concat_mkldnn_op PROPERTIES TIMEOUT 17)
set_tests_properties(test_analyzer_quant_performance_benchmark PROPERTIES TIMEOUT 37)
set_tests_properties(test_ir_memory_optimize_transformer PROPERTIES TIMEOUT 19)
set_tests_properties(trt_quant_int8_yolov3_r50_test PROPERTIES TIMEOUT 59)
set_tests_properties(test_analyzer_ernie PROPERTIES TIMEOUT 36)
set_tests_properties(test_nearest_interp_v2_op PROPERTIES TIMEOUT 39)
set_tests_properties(decorator_test PROPERTIES TIMEOUT 60)
set_tests_properties(test_trilinear_interp_op PROPERTIES TIMEOUT 56)
set_tests_properties(test_collective_allgather_api PROPERTIES TIMEOUT 28)
set_tests_properties(test_bicubic_interp_v2_op PROPERTIES TIMEOUT 41)
set_tests_properties(test_gather_op PROPERTIES TIMEOUT 19)
set_tests_properties(test_static_save_load PROPERTIES TIMEOUT 73)
set_tests_properties(test_fleet_launch PROPERTIES TIMEOUT 38)
set_tests_properties(test_dataset_cifar PROPERTIES TIMEOUT 35)
set_tests_properties(test_imperative_selected_rows_to_lod_tensor PROPERTIES TIMEOUT 47)
set_tests_properties(test_rnn_nets_static PROPERTIES TIMEOUT 18)
set_tests_properties(test_index_select_op PROPERTIES TIMEOUT 23)
set_tests_properties(test_pretrained_model PROPERTIES TIMEOUT 16)
set_tests_properties(test_analyzer_googlenet PROPERTIES TIMEOUT 26)
set_tests_properties(test_c_comm_init_op PROPERTIES TIMEOUT 14)
set_tests_properties(test_parallel_ssa_graph_inference_feed_partial_data PROPERTIES TIMEOUT 14)
set_tests_properties(lite_resnet50_test PROPERTIES TIMEOUT 14)
set_tests_properties(test_quant2_int8_resnet50_range_mkldnn PROPERTIES TIMEOUT 25)
set_tests_properties(test_model PROPERTIES TIMEOUT 35)
set_tests_properties(jit_kernel_test PROPERTIES TIMEOUT 25)
set_tests_properties(test_parallel_executor_crf PROPERTIES TIMEOUT 71)
set_tests_properties(test_imperative_save_load PROPERTIES TIMEOUT 28)
set_tests_properties(trt_resnet50_test PROPERTIES TIMEOUT 76)
set_tests_properties(test_text PROPERTIES TIMEOUT 40)
set_tests_properties(test_concat_op PROPERTIES TIMEOUT 32)
set_tests_properties(test_word2vec PROPERTIES TIMEOUT 18)
set_tests_properties(test_partial_eager_deletion_transformer PROPERTIES TIMEOUT 46)
set_tests_properties(test_post_training_quantization_mnist PROPERTIES TIMEOUT 26)
set_tests_properties(test_dataset_movie_reviews PROPERTIES TIMEOUT 17)
set_tests_properties(test_communicator_half_async PROPERTIES TIMEOUT 23)
set_tests_properties(test_parallel_executor_seresnext_with_reduce_gpu PROPERTIES TIMEOUT 30)
set_tests_properties(test_dropout_op PROPERTIES TIMEOUT 24)
set_tests_properties(test_image_classification PROPERTIES TIMEOUT 88)
set_tests_properties(test_parallel_executor_profiler PROPERTIES TIMEOUT 35)
set_tests_properties(test_argsort_op PROPERTIES TIMEOUT 19)
set_tests_properties(test_sequence_pool PROPERTIES TIMEOUT 20)
set_tests_properties(trt_cascade_rcnn_test PROPERTIES TIMEOUT 33)
set_tests_properties(test_seq2seq PROPERTIES TIMEOUT 22)
set_tests_properties(test_cycle_gan PROPERTIES TIMEOUT 14)
set_tests_properties(im2col_test PROPERTIES TIMEOUT 44)
set_tests_properties(test_layers PROPERTIES TIMEOUT 23)
set_tests_properties(test_gather_nd_op PROPERTIES TIMEOUT 72)
set_tests_properties(test_nn_grad PROPERTIES TIMEOUT 34)
set_tests_properties(test_elementwise_sub_op PROPERTIES TIMEOUT 15)
set_tests_properties(test_row_conv_op PROPERTIES TIMEOUT 23)
set_tests_properties(test_analyzer_small_dam PROPERTIES TIMEOUT 29)
set_tests_properties(test_parallel_executor_seresnext_with_fuse_all_reduce_gpu PROPERTIES TIMEOUT 22)
set_tests_properties(test_dataset_movielens PROPERTIES TIMEOUT 40)
set_tests_properties(test_elementwise_min_op PROPERTIES TIMEOUT 12)
set_tests_properties(test_nan_inf PROPERTIES TIMEOUT 15)
set_tests_properties(test_deformable_conv_v1_op PROPERTIES TIMEOUT 18)
set_tests_properties(test_image_classification_fp16 PROPERTIES TIMEOUT 35)
set_tests_properties(save_quant2_model_resnet50 PROPERTIES TIMEOUT 16)
set_tests_properties(test_parallel_executor_transformer_auto_growth PROPERTIES TIMEOUT 60)
set_tests_properties(test_py_reader_using_executor PROPERTIES TIMEOUT 15)
set_tests_properties(test_pipeline PROPERTIES TIMEOUT 59)
set_tests_properties(test_imperative_qat_channelwise PROPERTIES TIMEOUT 34)
set_tests_properties(test_elementwise_add_op PROPERTIES TIMEOUT 23)
set_tests_properties(test_trt_dynamic_shape_ernie PROPERTIES TIMEOUT 21)
set_tests_properties(test_weight_decay PROPERTIES TIMEOUT 56)
set_tests_properties(test_imperative_ptb_rnn_sorted_gradient PROPERTIES TIMEOUT 31)
set_tests_properties(test_transformer PROPERTIES TIMEOUT 41)
set_tests_properties(test_analyzer_int8_mobilenetv2 PROPERTIES TIMEOUT 25)
set_tests_properties(test_analyzer_int8_mobilenetv1 PROPERTIES TIMEOUT 16)
set_tests_properties(test_crop_tensor_op PROPERTIES TIMEOUT 21)
set_tests_properties(test_eager_deletion_lstm_net PROPERTIES TIMEOUT 38)
set_tests_properties(test_lac PROPERTIES TIMEOUT 27)
set_tests_properties(test_analyzer_transformer PROPERTIES TIMEOUT 90)
set_tests_properties(test_datasets PROPERTIES TIMEOUT 40)
set_tests_properties(test_parallel_executor_mnist PROPERTIES TIMEOUT 15)
set_tests_properties(test_reducescatter_api PROPERTIES TIMEOUT 17)
set_tests_properties(test_imperative_ptb_rnn PROPERTIES TIMEOUT 40)
set_tests_properties(test_broadcast PROPERTIES TIMEOUT 15)
set_tests_properties(test_imperative_save_load_v2 PROPERTIES TIMEOUT 35)
set_tests_properties(test_conv3d_transpose_part2_op PROPERTIES TIMEOUT 54)
set_tests_properties(test_prroi_pool_op PROPERTIES TIMEOUT 30)
set_tests_properties(test_analyzer_bert PROPERTIES TIMEOUT 25)
set_tests_properties(test_multiprocess_dataloader_iterable_dataset_static PROPERTIES TIMEOUT 16)
set_tests_properties(test_dataset_wmt PROPERTIES TIMEOUT 19)
set_tests_properties(test_weight_quantization_mobilenetv1 PROPERTIES TIMEOUT 12)
set_tests_properties(test_reducescatter PROPERTIES TIMEOUT 15)
set_tests_properties(test_lstm_cudnn_op PROPERTIES TIMEOUT 23)
set_tests_properties(test_vision_models PROPERTIES TIMEOUT 76)
set_tests_properties(test_stack_op PROPERTIES TIMEOUT 14)
set_tests_properties(test_bilinear_interp_v2_op PROPERTIES TIMEOUT 42)
set_tests_properties(test_sequence_concat PROPERTIES TIMEOUT 19)
set_tests_properties(test_fleet_checkpoint PROPERTIES TIMEOUT 55)
set_tests_properties(test_deformable_psroi_pooling PROPERTIES TIMEOUT 15)
set_tests_properties(test_trilinear_interp_v2_op PROPERTIES TIMEOUT 114)
set_tests_properties(test_collective_reduce_api PROPERTIES TIMEOUT 28)
set_tests_properties(test_imperative_static_runner_mnist PROPERTIES TIMEOUT 17)
set_tests_properties(test_masked_select_op PROPERTIES TIMEOUT 18)
set_tests_properties(test_sigmoid_cross_entropy_with_logits_op PROPERTIES TIMEOUT 16)
set_tests_properties(test_imperative_optimizer_v2 PROPERTIES TIMEOUT 31)
set_tests_properties(test_code_generator PROPERTIES TIMEOUT 23)
set_tests_properties(test_label_semantic_roles PROPERTIES TIMEOUT 35)
set_tests_properties(test_quant_int8_resnet50_mkldnn PROPERTIES TIMEOUT 43)
set_tests_properties(test_user_defined_quantization PROPERTIES TIMEOUT 31)
set_tests_properties(test_partial_sum_op PROPERTIES TIMEOUT 19)
set_tests_properties(test_cond PROPERTIES TIMEOUT 24)
set_tests_properties(test_space_to_depth_op PROPERTIES TIMEOUT 42)
set_tests_properties(test_collective_reduce PROPERTIES TIMEOUT 28)
set_tests_properties(test_dyn_rnn PROPERTIES TIMEOUT 28)
set_tests_properties(test_sgd_op PROPERTIES TIMEOUT 168)
set_tests_properties(test_parallel_executor_seresnext_base_gpu PROPERTIES TIMEOUT 23)
set_tests_properties(test_norm_nn_grad PROPERTIES TIMEOUT 12)
set_tests_properties(test_allreduce PROPERTIES TIMEOUT 16)
set_tests_properties(test_bert PROPERTIES TIMEOUT 14)
set_tests_properties(test_matrix_nms_op PROPERTIES TIMEOUT 16)
set_tests_properties(test_dataset_uci_housing PROPERTIES TIMEOUT 19)
set_tests_properties(test_machine_translation PROPERTIES TIMEOUT 27)
set_tests_properties(test_allgather PROPERTIES TIMEOUT 16)
set_tests_properties(test_generator_dataloader PROPERTIES TIMEOUT 26)
set_tests_properties(test_partial_concat_op PROPERTIES TIMEOUT 18)
set_tests_properties(test_fuse_optimizer_pass PROPERTIES TIMEOUT 23)
set_tests_properties(test_rnn_encoder_decoder PROPERTIES TIMEOUT 22)
set_tests_properties(test_launch PROPERTIES TIMEOUT 24)
set_tests_properties(test_collective_scatter_api PROPERTIES TIMEOUT 28)
set_tests_properties(test_softmax_with_cross_entropy_op PROPERTIES TIMEOUT 35)
set_tests_properties(test_reduce_op PROPERTIES TIMEOUT 28)
set_tests_properties(test_adam_optimizer_fp32_fp64 PROPERTIES TIMEOUT 16)
set_tests_properties(test_elementwise_nn_grad PROPERTIES TIMEOUT 40)
set_tests_properties(test_quant_int8_mobilenetv1_mkldnn PROPERTIES TIMEOUT 21)
set_tests_properties(test_basic_api_transformation PROPERTIES TIMEOUT 60)
set_tests_properties(test_trt_dynamic_shape_ernie_ser_deser PROPERTIES TIMEOUT 53)
set_tests_properties(test_dataset_imdb PROPERTIES TIMEOUT 98)
set_tests_properties(test_buffer_shared_memory_reuse_pass_and_fuse_optimization_op_pass PROPERTIES TIMEOUT 28)
set_tests_properties(test_multiprocess_reader_exception PROPERTIES TIMEOUT 20)
set_tests_properties(test_conv_nn_grad PROPERTIES TIMEOUT 50)
set_tests_properties(test_conv3d_op PROPERTIES TIMEOUT 67)
set_tests_properties(test_program_prune_backward PROPERTIES TIMEOUT 43)
set_tests_properties(test_group_norm_op PROPERTIES TIMEOUT 44)
set_tests_properties(test_resnet PROPERTIES TIMEOUT 32)
set_tests_properties(test_imperative_optimizer PROPERTIES TIMEOUT 31)
set_tests_properties(test_pool2d_op PROPERTIES TIMEOUT 24)
set_tests_properties(test_imperative_qat PROPERTIES TIMEOUT 35)
set_tests_properties(test_transpose_op PROPERTIES TIMEOUT 25)
set_tests_properties(test_eager_deletion_gru_net PROPERTIES TIMEOUT 30)
set_tests_properties(test_activation_op PROPERTIES TIMEOUT 26)
set_tests_properties(test_reinforcement_learning PROPERTIES TIMEOUT 9)
set_tests_properties(test_normal PROPERTIES TIMEOUT 40)
set_tests_properties(test_quant2_int8_ernie_mkldnn PROPERTIES TIMEOUT 57)
set_tests_properties(test_lstmp_op PROPERTIES TIMEOUT 35)
set_tests_properties(test_analyzer_mobilenet_depthwise_conv PROPERTIES TIMEOUT 25)
set_tests_properties(test_bilinear_interp_op PROPERTIES TIMEOUT 43)
set_tests_properties(test_decoupled_py_reader PROPERTIES TIMEOUT 25)
set_tests_properties(test_collective_barrier_api PROPERTIES TIMEOUT 27)
set_tests_properties(test_fuse_bn_act_pass PROPERTIES TIMEOUT 20)
set_tests_properties(test_quant_int8_googlenet_mkldnn PROPERTIES TIMEOUT 14)
set_tests_properties(test_conv2d_op PROPERTIES TIMEOUT 67)
set_tests_properties(test_weight_decay_extend PROPERTIES TIMEOUT 53)
set_tests_properties(rpc_server_test PROPERTIES TIMEOUT 31)
set_tests_properties(test_elementwise_mul_op PROPERTIES TIMEOUT 18)
set_tests_properties(test_cyclic_cifar_dataset PROPERTIES TIMEOUT 31)
set_tests_properties(test_fuse_all_reduce_pass PROPERTIES TIMEOUT 18)
set_tests_properties(test_dygraph_multi_forward PROPERTIES TIMEOUT 20)
set_tests_properties(test_quant2_int8_resnet50_mkldnn PROPERTIES TIMEOUT 34)
set_tests_properties(test_norm_op PROPERTIES TIMEOUT 19)
222 223 224
if(NOT APPLE AND NOT WIN32)
  add_subdirectory(custom_op)
endif()