From db6f3ee6e95d6e1e280194ef4e04faa84de8b67f Mon Sep 17 00:00:00 2001 From: kangguangli Date: Thu, 6 Jul 2023 10:37:39 +0800 Subject: [PATCH] [NewIR] add more unit tests in white_list (#55160) * add ir output check in OpTest * add ir grad check in op test * add more unittest * fix --- test/legacy_test/CMakeLists.txt | 2 +- test/new_ir_op_test_white_list | 2 - test/white_list/new_ir_op_test_white_list | 58 +++++++++++++++++++++++ 3 files changed, 59 insertions(+), 3 deletions(-) delete mode 100644 test/new_ir_op_test_white_list create mode 100644 test/white_list/new_ir_op_test_white_list diff --git a/test/legacy_test/CMakeLists.txt b/test/legacy_test/CMakeLists.txt index 688cbe2a257..4460dd5895f 100644 --- a/test/legacy_test/CMakeLists.txt +++ b/test/legacy_test/CMakeLists.txt @@ -1345,7 +1345,7 @@ set_tests_properties(test_sync_batch_norm_op_static_build PROPERTIES LABELS "RUN_TYPE=DIST") set_tests_properties(test_sync_batch_norm_op_static_build PROPERTIES TIMEOUT 250) -file(STRINGS "${CMAKE_SOURCE_DIR}/test/new_ir_op_test_white_list" +file(STRINGS "${CMAKE_SOURCE_DIR}/test/white_list/new_ir_op_test_white_list" NEW_IR_OP_TESTS) foreach(IR_OP_TEST ${NEW_IR_OP_TESTS}) if(TEST ${IR_OP_TEST}) diff --git a/test/new_ir_op_test_white_list b/test/new_ir_op_test_white_list deleted file mode 100644 index 220a565a478..00000000000 --- a/test/new_ir_op_test_white_list +++ /dev/null @@ -1,2 +0,0 @@ -test_atan2_op -test_elementwise_div_op diff --git a/test/white_list/new_ir_op_test_white_list b/test/white_list/new_ir_op_test_white_list new file mode 100644 index 00000000000..09caaca69bc --- /dev/null +++ b/test/white_list/new_ir_op_test_white_list @@ -0,0 +1,58 @@ +test_arange +test_atan2_op +test_bicubic_interp_v2_op +test_bincount_op +test_bincount_op_static_build +test_box_coder_op +test_channel_shuffle +test_complex_op +test_conv2d_op +test_conv2d_op_depthwise_conv +test_conv2d_transpose_op +test_conv2d_transpose_op_depthwise_conv +test_conv3d_op +test_conv3d_transpose_op +test_conv3d_transpose_part2_op +test_cumprod_op +test_dataloader_dataset +test_deformable_conv_op +test_eigvalsh_op +test_elementwise_div_op +test_elementwise_div_op +test_elementwise_heaviside_op +test_erfinv_op +test_eye_op +test_fill_constant_batch_size_like +test_fill_diagonal_tensor_op +test_flip +test_fmax_op +test_fmin_op +test_fold_op +test_grid_sampler_op +test_histogram_op +test_huber_loss_op +test_index_add_op +test_kron_op +test_kthvalue_op +test_label_smooth_op +test_masked_select_op +test_mode_op +test_pixel_shuffle_op +test_pool2d_op +test_pool3d_op +test_prelu_op +test_prior_box_op +test_psroi_pool_op +test_range +test_roi_align_op +test_roi_pool_op +test_segment_ops +test_segment_ops_static_build +test_spectral_op +test_standalone_executor_1f1b_plan +test_take_along_axis_op +test_temporal_shift_op +test_triangular_solve_op +test_trunc_op +test_unfold_op +test_unpool3d_op -- GitLab