Skip to content

Commit

Permalink
Update filters in ONNX tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabunin committed Feb 15, 2022
1 parent 59e16b8 commit a251474
Showing 1 changed file with 54 additions and 48 deletions.
102 changes: 54 additions & 48 deletions modules/dnn/test/test_onnx_conformance_layer_filter__openvino.inl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ if (name == #t) \

bool filterApplied = false;

#if INF_ENGINE_VER_MAJOR_EQ(2021040000) || INF_ENGINE_VER_MAJOR_EQ(2022010000)
#define SKIP_SET_1 1
#else
#define SKIP_SET_1 0
#endif

// Update note: execute <opencv_extra>/testdata/dnn/onnx/generate_conformance_list.py
BEGIN_SWITCH()
CASE(test_abs)
Expand All @@ -82,7 +88,7 @@ CASE(test_adam_multiple)
CASE(test_add)
// no filter
CASE(test_add_bcast)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_add_uint8)
Expand Down Expand Up @@ -190,11 +196,11 @@ CASE(test_averagepool_2d_ceil)
CASE(test_averagepool_2d_default)
// no filter
CASE(test_averagepool_2d_pads)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_averagepool_2d_pads_count_include_pad)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_CPU;
// MYRIAD is ok
SKIP_OPENCL;
Expand All @@ -203,15 +209,15 @@ CASE(test_averagepool_2d_pads_count_include_pad)
CASE(test_averagepool_2d_precomputed_pads)
// no filter
CASE(test_averagepool_2d_precomputed_pads_count_include_pad)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_averagepool_2d_precomputed_same_upper)
// no filter
CASE(test_averagepool_2d_precomputed_strides)
// no filter
CASE(test_averagepool_2d_same_lower)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_averagepool_2d_same_upper)
Expand All @@ -221,11 +227,11 @@ CASE(test_averagepool_2d_strides)
CASE(test_averagepool_3d_default)
// no filter
CASE(test_basic_conv_with_padding)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_basic_conv_without_padding)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_basic_convinteger)
Expand Down Expand Up @@ -283,11 +289,11 @@ CASE(test_cast_FLOAT_to_DOUBLE)
CASE(test_cast_FLOAT_to_FLOAT16)
// no filter
CASE(test_cast_FLOAT_to_STRING)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_cast_STRING_to_FLOAT)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_castlike_BFLOAT16_to_FLOAT)
Expand Down Expand Up @@ -325,13 +331,13 @@ CASE(test_castlike_FLOAT_to_FLOAT16_expanded)
CASE(test_castlike_FLOAT_to_STRING)
// no filter
CASE(test_castlike_FLOAT_to_STRING_expanded)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_castlike_STRING_to_FLOAT)
// no filter
CASE(test_castlike_STRING_to_FLOAT_expanded)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_ceil)
Expand Down Expand Up @@ -375,7 +381,7 @@ CASE(test_compress_negative_axis)
CASE(test_concat_1d_axis_0)
// no filter
CASE(test_concat_1d_axis_negative_1)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_concat_2d_axis_0)
Expand Down Expand Up @@ -409,19 +415,19 @@ CASE(test_constantofshape_int_shape_zero)
CASE(test_constantofshape_int_zeros)
// no filter
CASE(test_conv_with_autopad_same)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_conv_with_strides_and_asymmetric_padding)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_conv_with_strides_no_padding)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_conv_with_strides_padding)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_convinteger_with_padding)
Expand Down Expand Up @@ -489,7 +495,7 @@ CASE(test_det_nd)
CASE(test_div)
// no filter
CASE(test_div_bcast)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_div_example)
Expand All @@ -505,7 +511,7 @@ CASE(test_dropout_default_mask_ratio)
CASE(test_dropout_default_old)
// no filter
CASE(test_dropout_default_ratio)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_dropout_random_old)
Expand Down Expand Up @@ -629,11 +635,11 @@ CASE(test_globalaveragepool)
CASE(test_globalaveragepool_precomputed)
// no filter
CASE(test_globalmaxpool)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_globalmaxpool_precomputed)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_greater)
Expand Down Expand Up @@ -743,12 +749,12 @@ CASE(test_log)
CASE(test_log_example)
// no filter
CASE(test_logsoftmax_axis_0)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_OPENCL;
SKIP_OPENCL_FP16;
#endif
CASE(test_logsoftmax_axis_0_expanded)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_OPENCL;
SKIP_OPENCL_FP16;
#endif
Expand All @@ -761,7 +767,7 @@ CASE(test_logsoftmax_axis_2)
CASE(test_logsoftmax_axis_2_expanded)
// no filter
CASE(test_logsoftmax_default_axis)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_logsoftmax_default_axis_expanded)
Expand All @@ -771,12 +777,12 @@ CASE(test_logsoftmax_example_1)
CASE(test_logsoftmax_example_1_expanded)
// no filter
CASE(test_logsoftmax_large_number)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_OPENCL_FP16;
SKIP_MYRIAD;
#endif
CASE(test_logsoftmax_large_number_expanded)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_OPENCL_FP16;
SKIP_MYRIAD;
#endif
Expand Down Expand Up @@ -839,67 +845,67 @@ CASE(test_max_uint64)
CASE(test_max_uint8)
// no filter
CASE(test_maxpool_1d_default)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_maxpool_2d_ceil)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_maxpool_2d_default)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_maxpool_2d_dilations)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_maxpool_2d_pads)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_maxpool_2d_precomputed_pads)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_maxpool_2d_precomputed_same_upper)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_maxpool_2d_precomputed_strides)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_maxpool_2d_same_lower)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_maxpool_2d_same_upper)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_maxpool_2d_strides)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_MYRIAD;
#endif
CASE(test_maxpool_2d_uint8)
// no filter
CASE(test_maxpool_3d_default)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_NON_CPU;
#endif
CASE(test_maxpool_with_argmax_2d_precomputed_pads)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_maxpool_with_argmax_2d_precomputed_strides)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_maxunpool_export_with_output_shape)
// no filter
CASE(test_maxunpool_export_without_output_shape)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_mean_example)
Expand Down Expand Up @@ -969,7 +975,7 @@ CASE(test_momentum_multiple)
CASE(test_mul)
// no filter
CASE(test_mul_bcast)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_mul_example)
Expand Down Expand Up @@ -1643,12 +1649,12 @@ CASE(test_slice_negative_axes)
CASE(test_slice_start_out_of_bounds)
// no filter
CASE(test_softmax_axis_0)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_OPENCL;
SKIP_OPENCL_FP16;
#endif
CASE(test_softmax_axis_0_expanded)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_OPENCL;
SKIP_OPENCL_FP16;
#endif
Expand All @@ -1661,7 +1667,7 @@ CASE(test_softmax_axis_2)
CASE(test_softmax_axis_2_expanded)
// no filter
CASE(test_softmax_default_axis)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_softmax_default_axis_expanded)
Expand All @@ -1671,12 +1677,12 @@ CASE(test_softmax_example)
CASE(test_softmax_example_expanded)
// no filter
CASE(test_softmax_large_number)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_OPENCL_FP16;
SKIP_MYRIAD;
#endif
CASE(test_softmax_large_number_expanded)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP_OPENCL_FP16;
SKIP_MYRIAD;
#endif
Expand Down Expand Up @@ -1733,7 +1739,7 @@ CASE(test_strnormalizer_nostopwords_nochangecase)
CASE(test_sub)
// no filter
CASE(test_sub_bcast)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_sub_example)
Expand Down Expand Up @@ -1873,7 +1879,7 @@ CASE(test_unsqueeze_two_axes)
CASE(test_unsqueeze_unsorted_axes)
// no filter
CASE(test_upsample_nearest)
#if INF_ENGINE_VER_MAJOR_EQ(2021040000)
#if SKIP_SET_1
SKIP;
#endif
CASE(test_where_example)
Expand Down

0 comments on commit a251474

Please sign in to comment.