From 9629835b1ccce8e72fc93bf95be13e3d53cb4871 Mon Sep 17 00:00:00 2001 From: Justin Chu Date: Tue, 24 Sep 2024 22:56:46 +0000 Subject: [PATCH] [ONNX] Remove the operators test (#136335) The tests are obsolete and hard to maintain. Pull Request resolved: https://github.com/pytorch/pytorch/pull/136335 Approved by: https://github.com/xadupre --- .../expect/TestOperators.test_acos.expect | 47 - .../TestOperators.test_add_broadcast.expect | 61 - ...stOperators.test_add_left_broadcast.expect | 61 - ...tOperators.test_add_size1_broadcast.expect | 64 - ...tors.test_add_size1_right_broadcast.expect | 61 - ....test_add_size1_singleton_broadcast.expect | 64 - .../TestOperators.test_addconstant.expect | 61 - .../expect/TestOperators.test_addmm.expect | 106 -- .../TestOperators.test_arange_dynamic.expect | 36 - .../expect/TestOperators.test_argmax.expect | 59 - .../expect/TestOperators.test_asin.expect | 47 - .../expect/TestOperators.test_at_op.expect | 63 - .../expect/TestOperators.test_atan.expect | 47 - ...TestOperators.test_aten_embedding_1.expect | 36 - ...TestOperators.test_aten_embedding_2.expect | 160 -- .../TestOperators.test_avg_pool2d.expect | 89 -- .../expect/TestOperators.test_baddbmm.expect | 139 -- .../expect/TestOperators.test_basic.expect | 80 - .../TestOperators.test_batchnorm.expect | 154 -- .../TestOperators.test_batchnorm_1d.expect | 142 -- ...stOperators.test_batchnorm_noaffine.expect | 144 -- ...tOperators.test_batchnorm_onnx_irv4.expect | 102 -- ...stOperators.test_batchnorm_training.expect | 156 -- .../expect/TestOperators.test_bitshift.expect | 116 -- .../TestOperators.test_bitwise_and.expect | 134 -- .../expect/TestOperators.test_c2_op.expect | 179 --- .../expect/TestOperators.test_chunk.expect | 196 --- .../expect/TestOperators.test_clip.expect | 75 - .../expect/TestOperators.test_clip_max.expect | 74 - .../expect/TestOperators.test_clip_min.expect | 74 - .../expect/TestOperators.test_concat2.expect | 69 - .../expect/TestOperators.test_conv.expect | 122 -- .../TestOperators.test_conv_onnx_irv4.expect | 100 -- ...perators.test_conv_onnx_irv4_opset8.expect | 122 -- .../TestOperators.test_convtranspose.expect | 128 -- .../onnx/expect/TestOperators.test_cos.expect | 47 - .../expect/TestOperators.test_cumsum.expect | 67 - .../onnx/expect/TestOperators.test_det.expect | 53 - .../expect/TestOperators.test_dict.expect | 64 - .../expect/TestOperators.test_dict_str.expect | 67 - .../onnx/expect/TestOperators.test_dim.expect | 32 - .../expect/TestOperators.test_dropout.expect | 46 - .../TestOperators.test_dropout_default.expect | 81 -- .../TestOperators.test_dropout_opset12.expect | 46 - ...TestOperators.test_dropout_training.expect | 81 -- ...ators.test_dropout_training_opset12.expect | 81 -- ...TestOperators.test_dynamic_axes_add.expect | 64 - ...axes_add_inputs_same_symbolic_shape.expect | 48 - ...tOperators.test_dynamic_axes_matmul.expect | 73 - ...ators.test_dynamic_axes_reduce_mean.expect | 60 - ...perators.test_dynamic_axes_unchange.expect | 76 - .../onnx/expect/TestOperators.test_elu.expect | 64 - .../TestOperators.test_embedding_bags.expect | 433 ------ .../TestOperators.test_empty_like.expect | 40 - .../expect/TestOperators.test_equal.expect | 76 - .../onnx/expect/TestOperators.test_erf.expect | 59 - .../onnx/expect/TestOperators.test_exp.expect | 47 - .../expect/TestOperators.test_expand.expect | 143 -- .../expect/TestOperators.test_flatten.expect | 139 -- .../TestOperators.test_flatten2D.expect | 58 - .../expect/TestOperators.test_fmod.expect | 78 - .../TestOperators.test_frobenius_norm.expect | 64 - .../expect/TestOperators.test_full.expect | 40 - .../TestOperators.test_full_like.expect | 40 - .../expect/TestOperators.test_gather.expect | 78 - .../TestOperators.test_gather_opset11.expect | 78 - test/onnx/expect/TestOperators.test_ge.expect | 64 - .../expect/TestOperators.test_gelu.expect | 126 -- test/onnx/expect/TestOperators.test_gt.expect | 76 - .../expect/TestOperators.test_hardtanh.expect | 75 - .../TestOperators.test_implicit_expand.expect | 61 - .../expect/TestOperators.test_index.expect | 63 - .../expect/TestOperators.test_isnan.expect | 41 - .../TestOperators.test_layer_norm_aten.expect | 117 -- test/onnx/expect/TestOperators.test_le.expect | 64 - .../expect/TestOperators.test_linear.expect | 106 -- .../TestOperators.test_log_sigmoid.expect | 65 - .../TestOperators.test_logsoftmax.expect | 64 - ...rators.test_lstm_none_sequence_lens.expect | 44 - test/onnx/expect/TestOperators.test_lt.expect | 76 - .../TestOperators.test_master_opset.expect | 64 - .../onnx/expect/TestOperators.test_max.expect | 64 - .../expect/TestOperators.test_maxpool.expect | 79 - ...estOperators.test_maxpool_dilations.expect | 79 - .../TestOperators.test_maxpool_indices.expect | 179 --- .../expect/TestOperators.test_mean.expect | 52 - .../TestOperators.test_mean_dtype.expect | 63 - .../expect/TestOperators.test_meshgrid.expect | 352 ----- ...estOperators.test_meshgrid_indexing.expect | 322 ---- .../onnx/expect/TestOperators.test_min.expect | 64 - test/onnx/expect/TestOperators.test_mm.expect | 74 - .../expect/TestOperators.test_mul_bool.expect | 55 - .../TestOperators.test_mul_fp_bool.expect | 66 - .../expect/TestOperators.test_narrow.expect | 92 -- test/onnx/expect/TestOperators.test_ne.expect | 82 -- ...TestOperators.test_non_float_params.expect | 76 - .../expect/TestOperators.test_nonzero.expect | 62 - .../expect/TestOperators.test_norm_p1.expect | 66 - .../expect/TestOperators.test_norm_p2.expect | 66 - .../TestOperators.test_ones_like.expect | 40 - .../onnx/expect/TestOperators.test_pad.expect | 261 ---- .../expect/TestOperators.test_params.expect | 96 -- ...TestOperators.test_params_onnx_irv4.expect | 80 - .../expect/TestOperators.test_permute2.expect | 81 -- .../TestOperators.test_pixel_shuffle.expect | 69 - .../onnx/expect/TestOperators.test_pow.expect | 82 -- .../expect/TestOperators.test_prelu.expect | 87 -- .../expect/TestOperators.test_prod.expect | 52 - .../TestOperators.test_prod_dtype.expect | 63 - .../expect/TestOperators.test_rand.expect | 78 - .../expect/TestOperators.test_randn.expect | 78 - ...rs.test_reduce_sum_negative_indices.expect | 64 - .../TestOperators.test_reduced_mean.expect | 66 - ...stOperators.test_reduced_mean_dtype.expect | 77 - ...Operators.test_reduced_mean_keepdim.expect | 70 - .../TestOperators.test_reduced_prod.expect | 66 - ...stOperators.test_reduced_prod_dtype.expect | 77 - ...Operators.test_reduced_prod_keepdim.expect | 69 - .../TestOperators.test_reduced_sum.expect | 73 - ...estOperators.test_reduced_sum_dtype.expect | 87 -- ...tOperators.test_reduced_sum_keepdim.expect | 79 - .../TestOperators.test_reducemax.expect | 52 - .../TestOperators.test_reducemin.expect | 52 - .../TestOperators.test_remainder.expect | 93 -- .../expect/TestOperators.test_repeat.expect | 110 -- ...tOperators.test_repeat_dim_overflow.expect | 104 -- ...ors.test_retain_param_name_disabled.expect | 101 -- .../expect/TestOperators.test_round.expect | 41 - .../expect/TestOperators.test_rrelu.expect | 64 - .../expect/TestOperators.test_rsqrt.expect | 67 - .../expect/TestOperators.test_rsub.expect | 61 - .../TestOperators.test_scatter_add.expect | 91 -- ...tOperators.test_scatter_add_opset11.expect | 108 -- ...tOperators.test_scatter_add_opset16.expect | 91 -- .../expect/TestOperators.test_selu.expect | 59 - .../TestOperators.test_shape_value_map.expect | 251 ---- .../expect/TestOperators.test_sign.expect | 47 - .../onnx/expect/TestOperators.test_sin.expect | 47 - .../expect/TestOperators.test_slice.expect | 107 -- .../TestOperators.test_slice_dynamic.expect | 129 -- ...tOperators.test_softmaxcrossentropy.expect | 65 - ...erators.test_softmaxcrossentropy_3d.expect | 71 - ...rs.test_softmaxcrossentropy_3d_none.expect | 77 - ...erators.test_softmaxcrossentropy_4d.expect | 77 - ...st_softmaxcrossentropy_ignore_index.expect | 65 - ...rs.test_softmaxcrossentropy_weights.expect | 72 - .../expect/TestOperators.test_split.expect | 101 -- ...TestOperators.test_split_with_sizes.expect | 101 -- .../expect/TestOperators.test_sqrt.expect | 47 - .../onnx/expect/TestOperators.test_std.expect | 189 --- .../onnx/expect/TestOperators.test_sum.expect | 52 - .../TestOperators.test_sum_dtype.expect | 63 - .../onnx/expect/TestOperators.test_tan.expect | 47 - .../expect/TestOperators.test_topk.expect | 92 -- ...erators.test_topk_smallest_unsorted.expect | 102 -- .../TestOperators.test_transpose.expect | 47 - .../expect/TestOperators.test_type_as.expect | 41 - .../expect/TestOperators.test_unfold.expect | 206 --- .../expect/TestOperators.test_unique.expect | 85 -- .../TestOperators.test_unsqueeze.expect | 65 - ...erators.test_upsample_nearest_scale.expect | 95 -- ..._nearest_scale_default_scale_factor.expect | 95 -- ...perators.test_upsample_nearest_size.expect | 165 --- .../expect/TestOperators.test_view.expect | 64 - .../TestOperators.test_view_flatten.expect | 73 - .../TestOperators.test_zeros_like.expect | 40 - test/onnx/test_operators.py | 1293 ----------------- 167 files changed, 15750 deletions(-) delete mode 100644 test/onnx/expect/TestOperators.test_acos.expect delete mode 100644 test/onnx/expect/TestOperators.test_add_broadcast.expect delete mode 100644 test/onnx/expect/TestOperators.test_add_left_broadcast.expect delete mode 100644 test/onnx/expect/TestOperators.test_add_size1_broadcast.expect delete mode 100644 test/onnx/expect/TestOperators.test_add_size1_right_broadcast.expect delete mode 100644 test/onnx/expect/TestOperators.test_add_size1_singleton_broadcast.expect delete mode 100644 test/onnx/expect/TestOperators.test_addconstant.expect delete mode 100644 test/onnx/expect/TestOperators.test_addmm.expect delete mode 100644 test/onnx/expect/TestOperators.test_arange_dynamic.expect delete mode 100644 test/onnx/expect/TestOperators.test_argmax.expect delete mode 100644 test/onnx/expect/TestOperators.test_asin.expect delete mode 100644 test/onnx/expect/TestOperators.test_at_op.expect delete mode 100644 test/onnx/expect/TestOperators.test_atan.expect delete mode 100644 test/onnx/expect/TestOperators.test_aten_embedding_1.expect delete mode 100644 test/onnx/expect/TestOperators.test_aten_embedding_2.expect delete mode 100644 test/onnx/expect/TestOperators.test_avg_pool2d.expect delete mode 100644 test/onnx/expect/TestOperators.test_baddbmm.expect delete mode 100644 test/onnx/expect/TestOperators.test_basic.expect delete mode 100644 test/onnx/expect/TestOperators.test_batchnorm.expect delete mode 100644 test/onnx/expect/TestOperators.test_batchnorm_1d.expect delete mode 100644 test/onnx/expect/TestOperators.test_batchnorm_noaffine.expect delete mode 100644 test/onnx/expect/TestOperators.test_batchnorm_onnx_irv4.expect delete mode 100644 test/onnx/expect/TestOperators.test_batchnorm_training.expect delete mode 100644 test/onnx/expect/TestOperators.test_bitshift.expect delete mode 100644 test/onnx/expect/TestOperators.test_bitwise_and.expect delete mode 100644 test/onnx/expect/TestOperators.test_c2_op.expect delete mode 100644 test/onnx/expect/TestOperators.test_chunk.expect delete mode 100644 test/onnx/expect/TestOperators.test_clip.expect delete mode 100644 test/onnx/expect/TestOperators.test_clip_max.expect delete mode 100644 test/onnx/expect/TestOperators.test_clip_min.expect delete mode 100644 test/onnx/expect/TestOperators.test_concat2.expect delete mode 100644 test/onnx/expect/TestOperators.test_conv.expect delete mode 100644 test/onnx/expect/TestOperators.test_conv_onnx_irv4.expect delete mode 100644 test/onnx/expect/TestOperators.test_conv_onnx_irv4_opset8.expect delete mode 100644 test/onnx/expect/TestOperators.test_convtranspose.expect delete mode 100644 test/onnx/expect/TestOperators.test_cos.expect delete mode 100644 test/onnx/expect/TestOperators.test_cumsum.expect delete mode 100644 test/onnx/expect/TestOperators.test_det.expect delete mode 100644 test/onnx/expect/TestOperators.test_dict.expect delete mode 100644 test/onnx/expect/TestOperators.test_dict_str.expect delete mode 100644 test/onnx/expect/TestOperators.test_dim.expect delete mode 100644 test/onnx/expect/TestOperators.test_dropout.expect delete mode 100644 test/onnx/expect/TestOperators.test_dropout_default.expect delete mode 100644 test/onnx/expect/TestOperators.test_dropout_opset12.expect delete mode 100644 test/onnx/expect/TestOperators.test_dropout_training.expect delete mode 100644 test/onnx/expect/TestOperators.test_dropout_training_opset12.expect delete mode 100644 test/onnx/expect/TestOperators.test_dynamic_axes_add.expect delete mode 100644 test/onnx/expect/TestOperators.test_dynamic_axes_add_inputs_same_symbolic_shape.expect delete mode 100644 test/onnx/expect/TestOperators.test_dynamic_axes_matmul.expect delete mode 100644 test/onnx/expect/TestOperators.test_dynamic_axes_reduce_mean.expect delete mode 100644 test/onnx/expect/TestOperators.test_dynamic_axes_unchange.expect delete mode 100644 test/onnx/expect/TestOperators.test_elu.expect delete mode 100644 test/onnx/expect/TestOperators.test_embedding_bags.expect delete mode 100644 test/onnx/expect/TestOperators.test_empty_like.expect delete mode 100644 test/onnx/expect/TestOperators.test_equal.expect delete mode 100644 test/onnx/expect/TestOperators.test_erf.expect delete mode 100644 test/onnx/expect/TestOperators.test_exp.expect delete mode 100644 test/onnx/expect/TestOperators.test_expand.expect delete mode 100644 test/onnx/expect/TestOperators.test_flatten.expect delete mode 100644 test/onnx/expect/TestOperators.test_flatten2D.expect delete mode 100644 test/onnx/expect/TestOperators.test_fmod.expect delete mode 100644 test/onnx/expect/TestOperators.test_frobenius_norm.expect delete mode 100644 test/onnx/expect/TestOperators.test_full.expect delete mode 100644 test/onnx/expect/TestOperators.test_full_like.expect delete mode 100644 test/onnx/expect/TestOperators.test_gather.expect delete mode 100644 test/onnx/expect/TestOperators.test_gather_opset11.expect delete mode 100644 test/onnx/expect/TestOperators.test_ge.expect delete mode 100644 test/onnx/expect/TestOperators.test_gelu.expect delete mode 100644 test/onnx/expect/TestOperators.test_gt.expect delete mode 100644 test/onnx/expect/TestOperators.test_hardtanh.expect delete mode 100644 test/onnx/expect/TestOperators.test_implicit_expand.expect delete mode 100644 test/onnx/expect/TestOperators.test_index.expect delete mode 100644 test/onnx/expect/TestOperators.test_isnan.expect delete mode 100644 test/onnx/expect/TestOperators.test_layer_norm_aten.expect delete mode 100644 test/onnx/expect/TestOperators.test_le.expect delete mode 100644 test/onnx/expect/TestOperators.test_linear.expect delete mode 100644 test/onnx/expect/TestOperators.test_log_sigmoid.expect delete mode 100644 test/onnx/expect/TestOperators.test_logsoftmax.expect delete mode 100644 test/onnx/expect/TestOperators.test_lstm_none_sequence_lens.expect delete mode 100644 test/onnx/expect/TestOperators.test_lt.expect delete mode 100644 test/onnx/expect/TestOperators.test_master_opset.expect delete mode 100644 test/onnx/expect/TestOperators.test_max.expect delete mode 100644 test/onnx/expect/TestOperators.test_maxpool.expect delete mode 100644 test/onnx/expect/TestOperators.test_maxpool_dilations.expect delete mode 100644 test/onnx/expect/TestOperators.test_maxpool_indices.expect delete mode 100644 test/onnx/expect/TestOperators.test_mean.expect delete mode 100644 test/onnx/expect/TestOperators.test_mean_dtype.expect delete mode 100644 test/onnx/expect/TestOperators.test_meshgrid.expect delete mode 100644 test/onnx/expect/TestOperators.test_meshgrid_indexing.expect delete mode 100644 test/onnx/expect/TestOperators.test_min.expect delete mode 100644 test/onnx/expect/TestOperators.test_mm.expect delete mode 100644 test/onnx/expect/TestOperators.test_mul_bool.expect delete mode 100644 test/onnx/expect/TestOperators.test_mul_fp_bool.expect delete mode 100644 test/onnx/expect/TestOperators.test_narrow.expect delete mode 100644 test/onnx/expect/TestOperators.test_ne.expect delete mode 100644 test/onnx/expect/TestOperators.test_non_float_params.expect delete mode 100644 test/onnx/expect/TestOperators.test_nonzero.expect delete mode 100644 test/onnx/expect/TestOperators.test_norm_p1.expect delete mode 100644 test/onnx/expect/TestOperators.test_norm_p2.expect delete mode 100644 test/onnx/expect/TestOperators.test_ones_like.expect delete mode 100644 test/onnx/expect/TestOperators.test_pad.expect delete mode 100644 test/onnx/expect/TestOperators.test_params.expect delete mode 100644 test/onnx/expect/TestOperators.test_params_onnx_irv4.expect delete mode 100644 test/onnx/expect/TestOperators.test_permute2.expect delete mode 100644 test/onnx/expect/TestOperators.test_pixel_shuffle.expect delete mode 100644 test/onnx/expect/TestOperators.test_pow.expect delete mode 100644 test/onnx/expect/TestOperators.test_prelu.expect delete mode 100644 test/onnx/expect/TestOperators.test_prod.expect delete mode 100644 test/onnx/expect/TestOperators.test_prod_dtype.expect delete mode 100644 test/onnx/expect/TestOperators.test_rand.expect delete mode 100644 test/onnx/expect/TestOperators.test_randn.expect delete mode 100644 test/onnx/expect/TestOperators.test_reduce_sum_negative_indices.expect delete mode 100644 test/onnx/expect/TestOperators.test_reduced_mean.expect delete mode 100644 test/onnx/expect/TestOperators.test_reduced_mean_dtype.expect delete mode 100644 test/onnx/expect/TestOperators.test_reduced_mean_keepdim.expect delete mode 100644 test/onnx/expect/TestOperators.test_reduced_prod.expect delete mode 100644 test/onnx/expect/TestOperators.test_reduced_prod_dtype.expect delete mode 100644 test/onnx/expect/TestOperators.test_reduced_prod_keepdim.expect delete mode 100644 test/onnx/expect/TestOperators.test_reduced_sum.expect delete mode 100644 test/onnx/expect/TestOperators.test_reduced_sum_dtype.expect delete mode 100644 test/onnx/expect/TestOperators.test_reduced_sum_keepdim.expect delete mode 100644 test/onnx/expect/TestOperators.test_reducemax.expect delete mode 100644 test/onnx/expect/TestOperators.test_reducemin.expect delete mode 100644 test/onnx/expect/TestOperators.test_remainder.expect delete mode 100644 test/onnx/expect/TestOperators.test_repeat.expect delete mode 100644 test/onnx/expect/TestOperators.test_repeat_dim_overflow.expect delete mode 100644 test/onnx/expect/TestOperators.test_retain_param_name_disabled.expect delete mode 100644 test/onnx/expect/TestOperators.test_round.expect delete mode 100644 test/onnx/expect/TestOperators.test_rrelu.expect delete mode 100644 test/onnx/expect/TestOperators.test_rsqrt.expect delete mode 100644 test/onnx/expect/TestOperators.test_rsub.expect delete mode 100644 test/onnx/expect/TestOperators.test_scatter_add.expect delete mode 100644 test/onnx/expect/TestOperators.test_scatter_add_opset11.expect delete mode 100644 test/onnx/expect/TestOperators.test_scatter_add_opset16.expect delete mode 100644 test/onnx/expect/TestOperators.test_selu.expect delete mode 100644 test/onnx/expect/TestOperators.test_shape_value_map.expect delete mode 100644 test/onnx/expect/TestOperators.test_sign.expect delete mode 100644 test/onnx/expect/TestOperators.test_sin.expect delete mode 100644 test/onnx/expect/TestOperators.test_slice.expect delete mode 100644 test/onnx/expect/TestOperators.test_slice_dynamic.expect delete mode 100644 test/onnx/expect/TestOperators.test_softmaxcrossentropy.expect delete mode 100644 test/onnx/expect/TestOperators.test_softmaxcrossentropy_3d.expect delete mode 100644 test/onnx/expect/TestOperators.test_softmaxcrossentropy_3d_none.expect delete mode 100644 test/onnx/expect/TestOperators.test_softmaxcrossentropy_4d.expect delete mode 100644 test/onnx/expect/TestOperators.test_softmaxcrossentropy_ignore_index.expect delete mode 100644 test/onnx/expect/TestOperators.test_softmaxcrossentropy_weights.expect delete mode 100644 test/onnx/expect/TestOperators.test_split.expect delete mode 100644 test/onnx/expect/TestOperators.test_split_with_sizes.expect delete mode 100644 test/onnx/expect/TestOperators.test_sqrt.expect delete mode 100644 test/onnx/expect/TestOperators.test_std.expect delete mode 100644 test/onnx/expect/TestOperators.test_sum.expect delete mode 100644 test/onnx/expect/TestOperators.test_sum_dtype.expect delete mode 100644 test/onnx/expect/TestOperators.test_tan.expect delete mode 100644 test/onnx/expect/TestOperators.test_topk.expect delete mode 100644 test/onnx/expect/TestOperators.test_topk_smallest_unsorted.expect delete mode 100644 test/onnx/expect/TestOperators.test_transpose.expect delete mode 100644 test/onnx/expect/TestOperators.test_type_as.expect delete mode 100644 test/onnx/expect/TestOperators.test_unfold.expect delete mode 100644 test/onnx/expect/TestOperators.test_unique.expect delete mode 100644 test/onnx/expect/TestOperators.test_unsqueeze.expect delete mode 100644 test/onnx/expect/TestOperators.test_upsample_nearest_scale.expect delete mode 100644 test/onnx/expect/TestOperators.test_upsample_nearest_scale_default_scale_factor.expect delete mode 100644 test/onnx/expect/TestOperators.test_upsample_nearest_size.expect delete mode 100644 test/onnx/expect/TestOperators.test_view.expect delete mode 100644 test/onnx/expect/TestOperators.test_view_flatten.expect delete mode 100644 test/onnx/expect/TestOperators.test_zeros_like.expect delete mode 100644 test/onnx/test_operators.py diff --git a/test/onnx/expect/TestOperators.test_acos.expect b/test/onnx/expect/TestOperators.test_acos.expect deleted file mode 100644 index d2d0784036c58..0000000000000 --- a/test/onnx/expect/TestOperators.test_acos.expect +++ /dev/null @@ -1,47 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Acos_0" - output: "1" - name: "Acos_0" - op_type: "Acos" - } - name: "main_graph" - input { - name: "onnx::Acos_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_add_broadcast.expect b/test/onnx/expect/TestOperators.test_add_broadcast.expect deleted file mode 100644 index 6be78f1b9bacc..0000000000000 --- a/test/onnx/expect/TestOperators.test_add_broadcast.expect +++ /dev/null @@ -1,61 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Add_0" - input: "onnx::Add_1" - output: "2" - name: "Add_0" - op_type: "Add" - } - name: "main_graph" - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::Add_1" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_add_left_broadcast.expect b/test/onnx/expect/TestOperators.test_add_left_broadcast.expect deleted file mode 100644 index 6b2c58ac0616f..0000000000000 --- a/test/onnx/expect/TestOperators.test_add_left_broadcast.expect +++ /dev/null @@ -1,61 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Add_0" - input: "onnx::Add_1" - output: "2" - name: "Add_0" - op_type: "Add" - } - name: "main_graph" - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::Add_1" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_add_size1_broadcast.expect b/test/onnx/expect/TestOperators.test_add_size1_broadcast.expect deleted file mode 100644 index 065a1544bde31..0000000000000 --- a/test/onnx/expect/TestOperators.test_add_size1_broadcast.expect +++ /dev/null @@ -1,64 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Add_0" - input: "onnx::Add_1" - output: "2" - name: "Add_0" - op_type: "Add" - } - name: "main_graph" - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::Add_1" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 1 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_add_size1_right_broadcast.expect b/test/onnx/expect/TestOperators.test_add_size1_right_broadcast.expect deleted file mode 100644 index 6be78f1b9bacc..0000000000000 --- a/test/onnx/expect/TestOperators.test_add_size1_right_broadcast.expect +++ /dev/null @@ -1,61 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Add_0" - input: "onnx::Add_1" - output: "2" - name: "Add_0" - op_type: "Add" - } - name: "main_graph" - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::Add_1" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_add_size1_singleton_broadcast.expect b/test/onnx/expect/TestOperators.test_add_size1_singleton_broadcast.expect deleted file mode 100644 index f43388b961269..0000000000000 --- a/test/onnx/expect/TestOperators.test_add_size1_singleton_broadcast.expect +++ /dev/null @@ -1,64 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Add_0" - input: "onnx::Add_1" - output: "2" - name: "Add_0" - op_type: "Add" - } - name: "main_graph" - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::Add_1" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_addconstant.expect b/test/onnx/expect/TestOperators.test_addconstant.expect deleted file mode 100644 index 21fa28cb73eb6..0000000000000 --- a/test/onnx/expect/TestOperators.test_addconstant.expect +++ /dev/null @@ -1,61 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Add_1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 11 - raw_data: "\000\000\000\000\000\000\360?" - } - type: TENSOR - } - } - node { - input: "onnx::Add_0" - input: "onnx::Add_1" - output: "2" - name: "Add_2" - op_type: "Add" - } - name: "main_graph" - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_addmm.expect b/test/onnx/expect/TestOperators.test_addmm.expect deleted file mode 100644 index d917bcb237182..0000000000000 --- a/test/onnx/expect/TestOperators.test_addmm.expect +++ /dev/null @@ -1,106 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Gemm_0" - input: "onnx::Gemm_1" - input: "onnx::Gemm_2" - output: "onnx::Gemm_3" - name: "Gemm_0" - op_type: "Gemm" - attribute { - name: "alpha" - f: 1 - type: FLOAT - } - attribute { - name: "beta" - f: 1 - type: FLOAT - } - } - node { - input: "onnx::Gemm_0" - input: "onnx::Gemm_1" - input: "onnx::Gemm_3" - output: "4" - name: "Gemm_1" - op_type: "Gemm" - attribute { - name: "alpha" - f: 1 - type: FLOAT - } - attribute { - name: "beta" - f: 1 - type: FLOAT - } - } - name: "main_graph" - input { - name: "onnx::Gemm_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::Gemm_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "onnx::Gemm_2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "4" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_arange_dynamic.expect b/test/onnx/expect/TestOperators.test_arange_dynamic.expect deleted file mode 100644 index 7c2d0e3e39cd2..0000000000000 --- a/test/onnx/expect/TestOperators.test_arange_dynamic.expect +++ /dev/null @@ -1,36 +0,0 @@ -ir_version: 6 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 10 - data_type: 1 - raw_data: "\000\000\240@\000\000\260@\000\000\300@\000\000\320@\000\000\340@\000\000\360@\000\000\000A\000\000\010A\000\000\020A\000\000\030A" - } - type: TENSOR - } - } - name: "main_graph" - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 10 - } - } - } - } - } -} -opset_import { - version: 11 -} diff --git a/test/onnx/expect/TestOperators.test_argmax.expect b/test/onnx/expect/TestOperators.test_argmax.expect deleted file mode 100644 index 34c26f17e8b6f..0000000000000 --- a/test/onnx/expect/TestOperators.test_argmax.expect +++ /dev/null @@ -1,59 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ArgMax_0" - output: "1" - name: "ArgMax_0" - op_type: "ArgMax" - attribute { - name: "axis" - i: 1 - type: INT - } - attribute { - name: "keepdims" - i: 0 - type: INT - } - attribute { - name: "select_last_index" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::ArgMax_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 4 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_asin.expect b/test/onnx/expect/TestOperators.test_asin.expect deleted file mode 100644 index 90c502eec1ced..0000000000000 --- a/test/onnx/expect/TestOperators.test_asin.expect +++ /dev/null @@ -1,47 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Asin_0" - output: "1" - name: "Asin_0" - op_type: "Asin" - } - name: "main_graph" - input { - name: "onnx::Asin_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_at_op.expect b/test/onnx/expect/TestOperators.test_at_op.expect deleted file mode 100644 index d42d05dbed1d9..0000000000000 --- a/test/onnx/expect/TestOperators.test_at_op.expect +++ /dev/null @@ -1,63 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "x.1" - input: "x.1" - output: "1" - name: "ATen_0" - op_type: "ATen" - attribute { - name: "operator" - s: "add" - type: STRING - } - attribute { - name: "overload_name" - s: "" - type: STRING - } - domain: "org.pytorch.aten" - } - name: "main_graph" - input { - name: "x.1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} -opset_import { - domain: "org.pytorch.aten" - version: 1 -} diff --git a/test/onnx/expect/TestOperators.test_atan.expect b/test/onnx/expect/TestOperators.test_atan.expect deleted file mode 100644 index d11d7069e280e..0000000000000 --- a/test/onnx/expect/TestOperators.test_atan.expect +++ /dev/null @@ -1,47 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Atan_0" - output: "1" - name: "Atan_0" - op_type: "Atan" - } - name: "main_graph" - input { - name: "onnx::Atan_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_aten_embedding_1.expect b/test/onnx/expect/TestOperators.test_aten_embedding_1.expect deleted file mode 100644 index 58f11480139d4..0000000000000 --- a/test/onnx/expect/TestOperators.test_aten_embedding_1.expect +++ /dev/null @@ -1,36 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "3" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 32 - data_type: 1 - raw_data: "\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?" - } - type: TENSOR - } - } - name: "main_graph" - output { - name: "3" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 32 - } - } - } - } - } -} -opset_import { - version: 12 -} diff --git a/test/onnx/expect/TestOperators.test_aten_embedding_2.expect b/test/onnx/expect/TestOperators.test_aten_embedding_2.expect deleted file mode 100644 index ac457cb0b5461..0000000000000 --- a/test/onnx/expect/TestOperators.test_aten_embedding_2.expect +++ /dev/null @@ -1,160 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "emb.weight" - input: "input_1" - output: "onnx::Add_3" - name: "ATen_1" - op_type: "ATen" - attribute { - name: "custom_attributes_json" - s: "{\"padding_idx\":-1,\"scale_grad_by_freq\":false,\"sparse\":false}" - type: STRING - } - attribute { - name: "operator" - s: "embedding" - type: STRING - } - attribute { - name: "overload_name" - s: "" - type: STRING - } - domain: "org.pytorch.aten" - } - node { - input: "onnx::Add_3" - input: "input_2" - output: "onnx::Shape_4" - name: "Add_2" - op_type: "Add" - } - node { - input: "onnx::Shape_4" - output: "onnx::Gather_5" - name: "Shape_3" - op_type: "Shape" - } - node { - output: "onnx::Gather_6" - name: "Constant_4" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Gather_5" - input: "onnx::Gather_6" - output: "onnx::Unsqueeze_7" - name: "Gather_5" - op_type: "Gather" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "onnx::Unsqueeze_7" - output: "onnx::Concat_8" - name: "Unsqueeze_6" - op_type: "Unsqueeze" - attribute { - name: "axes" - ints: 0 - type: INTS - } - } - node { - input: "onnx::Concat_8" - output: "onnx::ConstantOfShape_9" - name: "Concat_7" - op_type: "Concat" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "onnx::ConstantOfShape_9" - output: "10" - name: "ConstantOfShape_8" - op_type: "ConstantOfShape" - attribute { - name: "value" - t { - dims: 1 - data_type: 1 - raw_data: "\000\000\200?" - } - type: TENSOR - } - } - name: "main_graph" - initializer { - dims: 4 - dims: 8 - data_type: 1 - name: "emb.weight" - raw_data: "\264\314\344\275\017A\376\276\313\374&>J\266a\277s\306\\=\212\032+?\211[t\275\344[\357\276Dk\\\276OKb?\234\'B\277A\334\274\2767N\257\276\320s\263\277\371+\244>:\314\202\277K\200L??\001\275\275\236u4\2774\032\315\277\214\004\224>Z\320\372>\267B\305\276\346G6\277N\265.\276\343\316\272\277t\364a>\201)|>p\223\251\277Qm2?\346\275)\277\354\235\233?" - } - input { - name: "input_1" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_param: "input_1_dim_0" - } - } - } - } - } - input { - name: "input_2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_param: "input_2_dim_0" - } - dim { - dim_param: "input_2_dim_1" - } - } - } - } - } - output { - name: "10" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_param: "ConstantOfShape10_dim_0" - } - } - } - } - } -} -opset_import { - version: 12 -} -opset_import { - domain: "org.pytorch.aten" - version: 1 -} diff --git a/test/onnx/expect/TestOperators.test_avg_pool2d.expect b/test/onnx/expect/TestOperators.test_avg_pool2d.expect deleted file mode 100644 index 76a5635d2da0f..0000000000000 --- a/test/onnx/expect/TestOperators.test_avg_pool2d.expect +++ /dev/null @@ -1,89 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::AveragePool_0" - output: "1" - name: "AveragePool_0" - op_type: "AveragePool" - attribute { - name: "ceil_mode" - i: 0 - type: INT - } - attribute { - name: "count_include_pad" - i: 1 - type: INT - } - attribute { - name: "kernel_shape" - ints: 3 - ints: 3 - type: INTS - } - attribute { - name: "pads" - ints: 0 - ints: 0 - ints: 0 - ints: 0 - type: INTS - } - attribute { - name: "strides" - ints: 2 - ints: 2 - type: INTS - } - } - name: "main_graph" - input { - name: "onnx::AveragePool_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 20 - } - dim { - dim_value: 16 - } - dim { - dim_value: 50 - } - dim { - dim_value: 32 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 20 - } - dim { - dim_value: 16 - } - dim { - dim_value: 24 - } - dim { - dim_value: 15 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_baddbmm.expect b/test/onnx/expect/TestOperators.test_baddbmm.expect deleted file mode 100644 index 7da98cf32f353..0000000000000 --- a/test/onnx/expect/TestOperators.test_baddbmm.expect +++ /dev/null @@ -1,139 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::MatMul_1" - input: "onnx::MatMul_2" - output: "onnx::Mul_4" - name: "MatMul_2" - op_type: "MatMul" - } - node { - output: "onnx::Mul_10" - name: "Constant_3" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\200?" - } - type: TENSOR - } - } - node { - input: "onnx::Mul_4" - input: "onnx::Mul_10" - output: "onnx::Add_6" - name: "Mul_4" - op_type: "Mul" - } - node { - output: "onnx::Mul_11" - name: "Constant_5" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\200?" - } - type: TENSOR - } - } - node { - input: "onnx::Mul_0" - input: "onnx::Mul_11" - output: "onnx::Add_8" - name: "Mul_6" - op_type: "Mul" - } - node { - input: "onnx::Add_6" - input: "onnx::Add_8" - output: "9" - name: "Add_7" - op_type: "Add" - } - name: "main_graph" - input { - name: "onnx::Mul_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 10 - } - dim { - dim_value: 3 - } - dim { - dim_value: 5 - } - } - } - } - } - input { - name: "onnx::MatMul_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 10 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "onnx::MatMul_2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 10 - } - dim { - dim_value: 4 - } - dim { - dim_value: 5 - } - } - } - } - } - output { - name: "9" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 10 - } - dim { - dim_value: 3 - } - dim { - dim_value: 5 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_basic.expect b/test/onnx/expect/TestOperators.test_basic.expect deleted file mode 100644 index d2fcbae967a52..0000000000000 --- a/test/onnx/expect/TestOperators.test_basic.expect +++ /dev/null @@ -1,80 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Add_0" - input: "onnx::Add_1" - output: "onnx::Mul_2" - name: "Add_0" - op_type: "Add" - } - node { - input: "onnx::Add_0" - input: "onnx::Mul_2" - output: "onnx::Tanh_3" - name: "Mul_1" - op_type: "Mul" - } - node { - input: "onnx::Tanh_3" - output: "onnx::Sigmoid_4" - name: "Tanh_2" - op_type: "Tanh" - } - node { - input: "onnx::Sigmoid_4" - output: "onnx::Neg_5" - name: "Sigmoid_3" - op_type: "Sigmoid" - } - node { - input: "onnx::Neg_5" - output: "6" - name: "Neg_4" - op_type: "Neg" - } - name: "main_graph" - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - } - } - } - } - input { - name: "onnx::Add_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - } - } - } - } - output { - name: "6" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_batchnorm.expect b/test/onnx/expect/TestOperators.test_batchnorm.expect deleted file mode 100644 index 01b95e4010358..0000000000000 --- a/test/onnx/expect/TestOperators.test_batchnorm.expect +++ /dev/null @@ -1,154 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - input: "weight" - input: "bias" - input: "running_mean" - input: "running_var" - output: "6" - name: "BatchNormalization_0" - op_type: "BatchNormalization" - attribute { - name: "epsilon" - f: 1e-05 - type: FLOAT - } - attribute { - name: "momentum" - f: 0.9 - type: FLOAT - } - attribute { - name: "training_mode" - i: 0 - type: INT - } - } - name: "main_graph" - initializer { - dims: 2 - data_type: 1 - name: "weight" - raw_data: "\000\000\200?\000\000\200?" - } - initializer { - dims: 2 - data_type: 1 - name: "bias" - raw_data: "\000\000\000\000\000\000\000\000" - } - initializer { - dims: 2 - data_type: 1 - name: "running_mean" - raw_data: "\000\000\000\000\000\000\000\000" - } - initializer { - dims: 2 - data_type: 1 - name: "running_var" - raw_data: "\000\000\200?\000\000\200?" - } - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "weight" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "bias" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "running_mean" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "running_var" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "6" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_batchnorm_1d.expect b/test/onnx/expect/TestOperators.test_batchnorm_1d.expect deleted file mode 100644 index 437b9e06a49d6..0000000000000 --- a/test/onnx/expect/TestOperators.test_batchnorm_1d.expect +++ /dev/null @@ -1,142 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - input: "weight" - input: "bias" - input: "running_mean" - input: "running_var" - output: "6" - name: "BatchNormalization_0" - op_type: "BatchNormalization" - attribute { - name: "epsilon" - f: 1e-05 - type: FLOAT - } - attribute { - name: "momentum" - f: 0.9 - type: FLOAT - } - attribute { - name: "training_mode" - i: 0 - type: INT - } - } - name: "main_graph" - initializer { - dims: 2 - data_type: 1 - name: "weight" - raw_data: "\000\000\200?\000\000\200?" - } - initializer { - dims: 2 - data_type: 1 - name: "bias" - raw_data: "\000\000\000\000\000\000\000\000" - } - initializer { - dims: 2 - data_type: 1 - name: "running_mean" - raw_data: "\000\000\000\000\000\000\000\000" - } - initializer { - dims: 2 - data_type: 1 - name: "running_var" - raw_data: "\000\000\200?\000\000\200?" - } - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "weight" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "bias" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "running_mean" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "running_var" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "6" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_batchnorm_noaffine.expect b/test/onnx/expect/TestOperators.test_batchnorm_noaffine.expect deleted file mode 100644 index b523fea377789..0000000000000 --- a/test/onnx/expect/TestOperators.test_batchnorm_noaffine.expect +++ /dev/null @@ -1,144 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::BatchNormalization_4" - name: "Constant_2" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 128 - data_type: 1 - raw_data: "\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?" - } - type: TENSOR - } - } - node { - output: "onnx::BatchNormalization_5" - name: "Constant_3" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 128 - data_type: 1 - raw_data: "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "input" - input: "onnx::BatchNormalization_4" - input: "onnx::BatchNormalization_5" - input: "running_mean" - input: "running_var" - output: "6" - name: "BatchNormalization_4" - op_type: "BatchNormalization" - attribute { - name: "epsilon" - f: 1e-05 - type: FLOAT - } - attribute { - name: "momentum" - f: 0.7 - type: FLOAT - } - attribute { - name: "training_mode" - i: 0 - type: INT - } - } - name: "main_graph" - initializer { - dims: 128 - data_type: 1 - name: "running_mean" - raw_data: "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" - } - initializer { - dims: 128 - data_type: 1 - name: "running_var" - raw_data: "\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?" - } - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 128 - } - dim { - dim_value: 128 - } - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - } - } - } - } - input { - name: "running_mean" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 128 - } - } - } - } - } - input { - name: "running_var" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 128 - } - } - } - } - } - output { - name: "6" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 128 - } - dim { - dim_value: 128 - } - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_batchnorm_onnx_irv4.expect b/test/onnx/expect/TestOperators.test_batchnorm_onnx_irv4.expect deleted file mode 100644 index b3f0793eb3acd..0000000000000 --- a/test/onnx/expect/TestOperators.test_batchnorm_onnx_irv4.expect +++ /dev/null @@ -1,102 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - input: "weight" - input: "bias" - input: "running_mean" - input: "running_var" - output: "6" - name: "BatchNormalization_0" - op_type: "BatchNormalization" - attribute { - name: "epsilon" - f: 1e-05 - type: FLOAT - } - attribute { - name: "momentum" - f: 0.9 - type: FLOAT - } - attribute { - name: "training_mode" - i: 0 - type: INT - } - } - name: "main_graph" - initializer { - dims: 2 - data_type: 1 - name: "weight" - raw_data: "\000\000\200?\000\000\200?" - } - initializer { - dims: 2 - data_type: 1 - name: "bias" - raw_data: "\000\000\000\000\000\000\000\000" - } - initializer { - dims: 2 - data_type: 1 - name: "running_mean" - raw_data: "\000\000\000\000\000\000\000\000" - } - initializer { - dims: 2 - data_type: 1 - name: "running_var" - raw_data: "\000\000\200?\000\000\200?" - } - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "6" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_batchnorm_training.expect b/test/onnx/expect/TestOperators.test_batchnorm_training.expect deleted file mode 100644 index 24bb2c96bb31d..0000000000000 --- a/test/onnx/expect/TestOperators.test_batchnorm_training.expect +++ /dev/null @@ -1,156 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - input: "weight" - input: "bias" - input: "running_mean" - input: "running_var" - output: "6" - output: "7" - output: "8" - name: "BatchNormalization_0" - op_type: "BatchNormalization" - attribute { - name: "epsilon" - f: 1e-05 - type: FLOAT - } - attribute { - name: "momentum" - f: 0.9 - type: FLOAT - } - attribute { - name: "training_mode" - i: 1 - type: INT - } - } - name: "main_graph" - initializer { - dims: 2 - data_type: 1 - name: "weight" - raw_data: "\000\000\200?\000\000\200?" - } - initializer { - dims: 2 - data_type: 1 - name: "bias" - raw_data: "\000\000\000\000\000\000\000\000" - } - initializer { - dims: 2 - data_type: 1 - name: "running_mean" - raw_data: "\315\314\314=\315\314\314=" - } - initializer { - dims: 2 - data_type: 1 - name: "running_var" - raw_data: "fff?fff?" - } - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "weight" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "bias" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "running_mean" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "running_var" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "6" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_bitshift.expect b/test/onnx/expect/TestOperators.test_bitshift.expect deleted file mode 100644 index 8d83f482746b3..0000000000000 --- a/test/onnx/expect/TestOperators.test_bitshift.expect +++ /dev/null @@ -1,116 +0,0 @@ -ir_version: 6 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::BitShift_7" - name: "Constant_2" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 2 - raw_data: "\001" - } - type: TENSOR - } - } - node { - input: "onnx::BitShift_0" - input: "onnx::BitShift_7" - output: "3" - name: "BitShift_3" - op_type: "BitShift" - attribute { - name: "direction" - s: "RIGHT" - type: STRING - } - } - node { - output: "onnx::BitShift_8" - name: "Constant_4" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 2 - raw_data: "\002" - } - type: TENSOR - } - } - node { - input: "onnx::BitShift_0" - input: "onnx::BitShift_8" - output: "6" - name: "BitShift_5" - op_type: "BitShift" - attribute { - name: "direction" - s: "RIGHT" - type: STRING - } - } - name: "main_graph" - input { - name: "onnx::BitShift_0" - type { - tensor_type { - elem_type: 2 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "3" - type { - tensor_type { - elem_type: 2 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "6" - type { - tensor_type { - elem_type: 2 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - dim { - dim_value: 2 - } - } - } - } - } -} -opset_import { - version: 11 -} diff --git a/test/onnx/expect/TestOperators.test_bitwise_and.expect b/test/onnx/expect/TestOperators.test_bitwise_and.expect deleted file mode 100644 index db1f9082062b5..0000000000000 --- a/test/onnx/expect/TestOperators.test_bitwise_and.expect +++ /dev/null @@ -1,134 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Cast_0" - output: "onnx::BitwiseAnd_2" - name: "Cast_1" - op_type: "Cast" - attribute { - name: "to" - i: 5 - type: INT - } - } - node { - input: "onnx::Cast_1" - output: "onnx::BitwiseAnd_3" - name: "Cast_2" - op_type: "Cast" - attribute { - name: "to" - i: 5 - type: INT - } - } - node { - input: "onnx::BitwiseAnd_2" - input: "onnx::BitwiseAnd_3" - output: "4" - name: "BitwiseAnd_3" - op_type: "BitwiseAnd" - } - node { - output: "onnx::BitwiseAnd_8" - name: "Constant_4" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 2 - raw_data: "\002" - } - type: TENSOR - } - } - node { - input: "onnx::Cast_0" - input: "onnx::BitwiseAnd_8" - output: "7" - name: "BitwiseAnd_5" - op_type: "BitwiseAnd" - } - name: "main_graph" - input { - name: "onnx::Cast_0" - type { - tensor_type { - elem_type: 2 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "onnx::Cast_1" - type { - tensor_type { - elem_type: 3 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "4" - type { - tensor_type { - elem_type: 5 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "7" - type { - tensor_type { - elem_type: 2 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 18 -} diff --git a/test/onnx/expect/TestOperators.test_c2_op.expect b/test/onnx/expect/TestOperators.test_c2_op.expect deleted file mode 100644 index 8c2a97cce97c9..0000000000000 --- a/test/onnx/expect/TestOperators.test_c2_op.expect +++ /dev/null @@ -1,179 +0,0 @@ -ir_version: 4 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "_caffe2::GenerateProposals_0" - input: "_caffe2::GenerateProposals_1" - input: "_caffe2::GenerateProposals_2" - input: "_caffe2::GenerateProposals_3" - output: "4" - output: "5" - name: "GenerateProposals_0" - op_type: "GenerateProposals" - attribute { - name: "spatial_scale" - f: 2 - type: FLOAT - } - attribute { - name: "pre_nms_topN" - i: 6000 - type: INT - } - attribute { - name: "post_nms_topN" - i: 300 - type: INT - } - attribute { - name: "nms_thresh" - f: 0.7 - type: FLOAT - } - attribute { - name: "min_size" - f: 16 - type: FLOAT - } - attribute { - name: "angle_bound_on" - i: 1 - type: INT - } - attribute { - name: "angle_bound_lo" - i: -90 - type: INT - } - attribute { - name: "angle_bound_hi" - i: 90 - type: INT - } - attribute { - name: "clip_angle_thresh" - f: 1 - type: FLOAT - } - attribute { - name: "legacy_plus_one" - i: 1 - type: INT - } - domain: "org.pytorch._caffe2" - } - name: "main_graph" - input { - name: "_caffe2::GenerateProposals_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - dim { - dim_value: 10 - } - dim { - dim_value: 8 - } - } - } - } - } - input { - name: "_caffe2::GenerateProposals_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 16 - } - dim { - dim_value: 10 - } - dim { - dim_value: 8 - } - } - } - } - } - input { - name: "_caffe2::GenerateProposals_2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "_caffe2::GenerateProposals_3" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 4 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "4" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_param: "GenerateProposals4_dim_0" - } - dim { - dim_param: "GenerateProposals4_dim_1" - } - } - } - } - } - output { - name: "5" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_param: "GenerateProposals5_dim_0" - } - } - } - } - } -} -opset_import { - version: 9 -} -opset_import { - domain: "org.pytorch._caffe2" - version: 0 -} diff --git a/test/onnx/expect/TestOperators.test_chunk.expect b/test/onnx/expect/TestOperators.test_chunk.expect deleted file mode 100644 index e15d0afde25bf..0000000000000 --- a/test/onnx/expect/TestOperators.test_chunk.expect +++ /dev/null @@ -1,196 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Shape_0" - output: "onnx::Gather_1" - name: "Shape_6" - op_type: "Shape" - } - node { - output: "onnx::Gather_2" - name: "Constant_7" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Gather_1" - input: "onnx::Gather_2" - output: "onnx::Add_3" - name: "Gather_8" - op_type: "Gather" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - output: "onnx::Slice_4" - name: "Constant_9" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Add_5" - name: "Constant_10" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Add_3" - input: "onnx::Add_5" - output: "onnx::Div_6" - name: "Add_11" - op_type: "Add" - } - node { - output: "onnx::Div_7" - name: "Constant_12" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Div_6" - input: "onnx::Div_7" - output: "onnx::Mul_8" - name: "Div_13" - op_type: "Div" - } - node { - output: "onnx::Mul_9" - name: "Constant_14" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Mul_8" - input: "onnx::Mul_9" - output: "onnx::Slice_10" - name: "Mul_15" - op_type: "Mul" - } - node { - input: "onnx::Shape_0" - input: "onnx::Slice_4" - input: "onnx::Slice_10" - input: "onnx::Gather_2" - output: "11" - name: "Slice_16" - op_type: "Slice" - } - node { - output: "onnx::Mul_12" - name: "Constant_17" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Mul_8" - input: "onnx::Mul_12" - output: "onnx::Slice_13" - name: "Mul_18" - op_type: "Mul" - } - node { - input: "onnx::Shape_0" - input: "onnx::Slice_10" - input: "onnx::Slice_13" - input: "onnx::Gather_2" - output: "14" - name: "Slice_19" - op_type: "Slice" - } - name: "main_graph" - input { - name: "onnx::Shape_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "11" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "14" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_clip.expect b/test/onnx/expect/TestOperators.test_clip.expect deleted file mode 100644 index e6ea2ce459c44..0000000000000 --- a/test/onnx/expect/TestOperators.test_clip.expect +++ /dev/null @@ -1,75 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Clip_6" - name: "Constant_2" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\000\277" - } - type: TENSOR - } - } - node { - output: "onnx::Clip_7" - name: "Constant_3" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\000?" - } - type: TENSOR - } - } - node { - input: "onnx::Clip_0" - input: "onnx::Clip_6" - input: "onnx::Clip_7" - output: "5" - name: "Clip_4" - op_type: "Clip" - } - name: "main_graph" - input { - name: "onnx::Clip_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "5" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_clip_max.expect b/test/onnx/expect/TestOperators.test_clip_max.expect deleted file mode 100644 index 079fb3da453cd..0000000000000 --- a/test/onnx/expect/TestOperators.test_clip_max.expect +++ /dev/null @@ -1,74 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Clip_7" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\315\314\314=" - } - type: TENSOR - } - } - node { - input: "onnx::Clip_0" - input: "" - input: "onnx::Clip_7" - output: "5" - name: "Clip_2" - op_type: "Clip" - } - name: "main_graph" - input { - name: "onnx::Clip_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "5" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_clip_min.expect b/test/onnx/expect/TestOperators.test_clip_min.expect deleted file mode 100644 index 3d28e9c05a265..0000000000000 --- a/test/onnx/expect/TestOperators.test_clip_min.expect +++ /dev/null @@ -1,74 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Clip_7" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\315\314\314\275" - } - type: TENSOR - } - } - node { - input: "onnx::Clip_0" - input: "onnx::Clip_7" - input: "" - output: "5" - name: "Clip_2" - op_type: "Clip" - } - name: "main_graph" - input { - name: "onnx::Clip_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "5" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_concat2.expect b/test/onnx/expect/TestOperators.test_concat2.expect deleted file mode 100644 index 636c9349e6e7c..0000000000000 --- a/test/onnx/expect/TestOperators.test_concat2.expect +++ /dev/null @@ -1,69 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Concat_0" - input: "onnx::Concat_1" - output: "2" - name: "Concat_0" - op_type: "Concat" - attribute { - name: "axis" - i: 1 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::Concat_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::Concat_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 6 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_conv.expect b/test/onnx/expect/TestOperators.test_conv.expect deleted file mode 100644 index 6cb7c9e4d7e8b..0000000000000 --- a/test/onnx/expect/TestOperators.test_conv.expect +++ /dev/null @@ -1,122 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - input: "weight" - output: "2" - name: "Conv_0" - op_type: "Conv" - attribute { - name: "dilations" - ints: 1 - ints: 1 - type: INTS - } - attribute { - name: "group" - i: 1 - type: INT - } - attribute { - name: "kernel_shape" - ints: 3 - ints: 3 - type: INTS - } - attribute { - name: "pads" - ints: 0 - ints: 0 - ints: 0 - ints: 0 - type: INTS - } - attribute { - name: "strides" - ints: 1 - ints: 1 - type: INTS - } - } - name: "main_graph" - initializer { - dims: 13 - dims: 16 - dims: 3 - dims: 3 - data_type: 1 - name: "weight" - raw_data: "l\306\240\275\360\360\205\274F\362#\275<\024\266\274F\304\226\2756\371\010=\213\374\230\275\220\000\256\273\244M\355*\\\275\250\007\030\274\013\263\200\275\345K\236=\022\3767=`\300\235\275pt<\275@\376\361<\200\247\225;\274\351\264A[=0+\315\274\374\340\212\274Fm\"=f\310\215\275\250BN\274\307\027\243=l\262\365<\320m\374\274\364\262\224\274\215\227\206=X\365\000=zag=N\315[\275\240\320\304<\200\020t<\210\377m<\ry\236=\316\363<=2Hk=F\340\025=\000u\017=(}m\274\262\240\226\275\320*\220\275V\227T\275p\376\\\275@\257 =lT\323<\326\247\302\274\306\001\202\275\355\003\250=u?\200=\372T\"=\215\356\250=\203\2725\275\353aB\275\373\313G\275\0004\204\273r\247\226\275Y\033\207=\240}\014;~\373)=Ns;\275\300\250\014\274\030\2243<|\331\272\274\237\027\241=K\362\033\275,\367\323<\376\230g\275\370\232!\274v\034\265\274ZE\023=\222on=\234\007\246.g=\350\362L\275/\232\225=l\003\250\273\342\256|=\314\304\221\274w\354\226=\310Y4<\334\254\227\274\246\256^\275\026\235|=\010\2301<\204$\354\273L\275\312\274p\272\372\273\260\266\300\274\250\203a\274\324\255\227<\255@\247=\274\372\214\274\257\027\214=\337K\231=^U#=fH\264\274po\265<[\305_\275\360\257\350\273H\240\037\275H\260\202\275p\207\220\275\214_\366\274\334Q\252<\000W\346\272\340,<;\342E\017=\244\033\303<\252te=\300\217\243\274\004\227\234<\200HY\272\274(\372\005<\327\217\241\275\320I\246;\020\216P\275\202\020@=\262\036\242\275\341\323\231=l\013\240\274p\337\350\274\000j\014\272.\201\213\275\220+\334<\0015\213=\023c\017\275\000\257\335\274\2136\216\275\\O\246<\322j{=\005\360\212=\340\025\333\025\275&\220\231\275\332UA=\333!.\275b\266$=pI\215\275s#d\275 \1773\273G\245\251=\000]1\274\030\010\003\2744\034\226\274H\306D<\366\260\322\274S\371\203=\350G\013<^\250/= \2144;S\032\200=n\255W\275\320T.\275~\364\006\275\323\254\r\275\020\322\302;\346\370\035=Hh{\275\216.p\275r\277N=\230\260\034=`\251\217<\002{\020=\310\244\037F=\003\032&\275c\235\227\275 \0257;\025\352\247=\017g\202\275xXV<\313__\2758\245\222\275\200\021!\272\340\346\362\274D\321\242\274\324\376\340\374\251\275\003\311\242\275\263\023<\275\022\2260=p:\314\273\253\200r\275k\334c\275(\251\004\275\033\207{\275#@\237=[\276Z\275\326\3544\275#\361o\275\206\002\367\274M\261\207=\340\360\371<@f\313;sd\250\275\216\367\t=\315\263\237=\300\246\256\272V\026h=,A\334\274\034\010\240\275\000n\010\273\230\021\010=\026\363\025\275\300=\236;xNdpu\2756\272/\275\020w\222\275\3448\314<\222^f=h\3135\274\320\357\305\273\314\005\257<8\377H\274\320`\345;29\014=uZ\203=\336=.=<\030\247<\3777\222=\223\"\230\275\353\275`\275\307\275\212=\255\253\236= \035\037\275\r\000\206=\310\242\034\274\326\277\276\274\000\330R\273\346x\261\274\014\374\273<\3606\317;\000l\332\271\210\202\017\275\276TO=\246\204S\275\300\370\225\272\366\314`=\323\3655\275P\345c\275l|\265<3\"\215\2753V\016\275\321\360\224=j\317D=\355V\232=Z+\243\275\\\201\240\275\020\362\251\355\273&k\t\275\216\303\"\275\020\240\276<\360F\314<\200U\017\275n\344\000=V%\007\275\240P\177;D\275\214\274\000>\n;\035>\213=\000\020\n\275\203\"\232= cy\273C\376g\275`Q\357<\350\247\031\326\274H2\004\275v\343C\275\230\t6\274\030\274\020=\006\301T\275(\202}\274\363\343\023\2752\323U=\357\216\203=y\257\214=\333&\247=F\241\"\275\300\325n\275\266\337t=\246\321\023=\030~`<\320\032?\275\306\'\210\275V\244\342\274y\355\214=FE,\275P\213Y\275\344\330\373\361^\275P1\302\274\013xY\275\033\004\205\275\353\374\226\275\314\254\311\274&\330\227\275\202DF=X\006U\274\263,b\275\274\253\311\274\323\352\225\275\241\025\212=x\033,\274\\\330\226\274\370\325\024<\000\374\276;\336\217S=\023\234G\275\025\242\210=\360\242-\275\240\352\016<4?\204\274\370\312\025<\340Jw\273\350\370\n=\023bK\275&\266Q\275\206\266[=?\203\213\275\017\030\200=V\032\246\2758$Y\274\302\312\n=N\300\030=\340\310V< \253\t\273\271I\244=\336\243\205\275`&\215\274*\364V=73\236=d\251\227\274\311\227\231=\216G\007=d\273\200<\271\207\200=\232\216;=\002m\230\275\000\034\"\273\223R\236\275\010\306]\275\230AO<\344\034\224<\361\306\246=\220k\272\274\317\325\210=\211\225\240=`{.\274\'\203\236=\300z\204;0\265\370< \013\206<\262\000K=\320~\374|\275Sd~\275\247b\247=\204h\377<*\203\027=&\304J\275\033\354S\275\014&\307< wf\274\tE\206=\360c\345\274\035\354\245=\032\026\001=V.\026\275G\353\207\275\312!N=\000?\"\275~\256\210\275\010\326?<\202\t.=P\263\227\274x\310\014<#\002\026\275\2413\203=-,\234=Z\317^=\244\003\245\275\220\346\233\275\032\206==%\352\223=rD6=(\"\010<\314\t\210\274*\033\200\2758\215>\274\271!\241=\250\303\r\274f\313\243\275 \241E\216<\033\004z\2758\367U<\320\335\002=\023\204r\275\320\017\243\275@\014\304:t\177\270<\340-\300\274p\036W\2750/\257\273>\202&=\376\346F\275\2620\237\275\345\334\244=\307\375\240\275\240tR\274~A =X\003T\275\000<\363\273 \377W\273`\214=<\014\022\240<\016\204#\275\256\274h=\310\370+<\301\223\250=\300=\272;\020&(\275\000\2006;=B\241=\316\344`\2750(\355\273{\336C\275\000\344,\275\247\300\200=?4\226=:\321B=Kde\275\353\0101\275g\223\217\275\300,\345\274\344\024\314<\252mo=\200\247\026\275[\rB\275\240\263\343&e=\300%p\274\350\372\003\274\254\215\350\274le\224<\226\344\361\274\016\000*\275\300\305V<\003\254\212\275\340\360\362<\266\371z\275\031\201\202=\262\373m=p\267\276\273P\245\207;P\241\354;T\003\351<\330\033S\274h}X<\300J\371\273\206\r^\275\210z\003=\"\352\211\275H\242k\274\335\320\240=\3007\231\272\220\325\260\273\322\222\034=my\235=\"J\007=F6\321\274\306gf=\260y\260\273x\326)<\206\200J=\330\330C\274f\365\003=\260}\242\2732l/=.\352t= \374\221<\300\274\311\273\253\344\207\275\260\3479\275\274\257\222\274{\307\227= \363];\020\027\360<\360\201?\275\200\032\234\000\275\030\205<\274\254\021\212\274\340:t\273\016\300\233\275\245C\202=\267w\241=\372\201;=]k\247=\034\212\272\274\260W\374\273\353[\221\275\270\006\030<\226/y\275\207\'\236\275`\016C\273k\001\035\275\316%\207\275\200\252c;\200w,\274aE\233=\320\275\227\273\304\347\233<\235\250\212=\020b\251\274.\375p=\265\343\237=.\256\017\275\317c\212\275\302\250<=\313\001\'\275\254\217\217\275vJ\233\275\005\275\240=%\225\242=\3547\202\275" - } - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 20 - } - dim { - dim_value: 16 - } - dim { - dim_value: 50 - } - dim { - dim_value: 40 - } - } - } - } - } - input { - name: "weight" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 13 - } - dim { - dim_value: 16 - } - dim { - dim_value: 3 - } - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 20 - } - dim { - dim_value: 13 - } - dim { - dim_value: 48 - } - dim { - dim_value: 38 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_conv_onnx_irv4.expect b/test/onnx/expect/TestOperators.test_conv_onnx_irv4.expect deleted file mode 100644 index ee9726c3f8c70..0000000000000 --- a/test/onnx/expect/TestOperators.test_conv_onnx_irv4.expect +++ /dev/null @@ -1,100 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - input: "weight" - output: "2" - name: "Conv_0" - op_type: "Conv" - attribute { - name: "dilations" - ints: 1 - ints: 1 - type: INTS - } - attribute { - name: "group" - i: 1 - type: INT - } - attribute { - name: "kernel_shape" - ints: 3 - ints: 3 - type: INTS - } - attribute { - name: "pads" - ints: 0 - ints: 0 - ints: 0 - ints: 0 - type: INTS - } - attribute { - name: "strides" - ints: 1 - ints: 1 - type: INTS - } - } - name: "main_graph" - initializer { - dims: 13 - dims: 16 - dims: 3 - dims: 3 - data_type: 1 - name: "weight" - raw_data: "l\306\240\275\360\360\205\274F\362#\275<\024\266\274F\304\226\2756\371\010=\213\374\230\275\220\000\256\273\244M\355*\\\275\250\007\030\274\013\263\200\275\345K\236=\022\3767=`\300\235\275pt<\275@\376\361<\200\247\225;\274\351\264A[=0+\315\274\374\340\212\274Fm\"=f\310\215\275\250BN\274\307\027\243=l\262\365<\320m\374\274\364\262\224\274\215\227\206=X\365\000=zag=N\315[\275\240\320\304<\200\020t<\210\377m<\ry\236=\316\363<=2Hk=F\340\025=\000u\017=(}m\274\262\240\226\275\320*\220\275V\227T\275p\376\\\275@\257 =lT\323<\326\247\302\274\306\001\202\275\355\003\250=u?\200=\372T\"=\215\356\250=\203\2725\275\353aB\275\373\313G\275\0004\204\273r\247\226\275Y\033\207=\240}\014;~\373)=Ns;\275\300\250\014\274\030\2243<|\331\272\274\237\027\241=K\362\033\275,\367\323<\376\230g\275\370\232!\274v\034\265\274ZE\023=\222on=\234\007\246.g=\350\362L\275/\232\225=l\003\250\273\342\256|=\314\304\221\274w\354\226=\310Y4<\334\254\227\274\246\256^\275\026\235|=\010\2301<\204$\354\273L\275\312\274p\272\372\273\260\266\300\274\250\203a\274\324\255\227<\255@\247=\274\372\214\274\257\027\214=\337K\231=^U#=fH\264\274po\265<[\305_\275\360\257\350\273H\240\037\275H\260\202\275p\207\220\275\214_\366\274\334Q\252<\000W\346\272\340,<;\342E\017=\244\033\303<\252te=\300\217\243\274\004\227\234<\200HY\272\274(\372\005<\327\217\241\275\320I\246;\020\216P\275\202\020@=\262\036\242\275\341\323\231=l\013\240\274p\337\350\274\000j\014\272.\201\213\275\220+\334<\0015\213=\023c\017\275\000\257\335\274\2136\216\275\\O\246<\322j{=\005\360\212=\340\025\333\025\275&\220\231\275\332UA=\333!.\275b\266$=pI\215\275s#d\275 \1773\273G\245\251=\000]1\274\030\010\003\2744\034\226\274H\306D<\366\260\322\274S\371\203=\350G\013<^\250/= \2144;S\032\200=n\255W\275\320T.\275~\364\006\275\323\254\r\275\020\322\302;\346\370\035=Hh{\275\216.p\275r\277N=\230\260\034=`\251\217<\002{\020=\310\244\037F=\003\032&\275c\235\227\275 \0257;\025\352\247=\017g\202\275xXV<\313__\2758\245\222\275\200\021!\272\340\346\362\274D\321\242\274\324\376\340\374\251\275\003\311\242\275\263\023<\275\022\2260=p:\314\273\253\200r\275k\334c\275(\251\004\275\033\207{\275#@\237=[\276Z\275\326\3544\275#\361o\275\206\002\367\274M\261\207=\340\360\371<@f\313;sd\250\275\216\367\t=\315\263\237=\300\246\256\272V\026h=,A\334\274\034\010\240\275\000n\010\273\230\021\010=\026\363\025\275\300=\236;xNdpu\2756\272/\275\020w\222\275\3448\314<\222^f=h\3135\274\320\357\305\273\314\005\257<8\377H\274\320`\345;29\014=uZ\203=\336=.=<\030\247<\3777\222=\223\"\230\275\353\275`\275\307\275\212=\255\253\236= \035\037\275\r\000\206=\310\242\034\274\326\277\276\274\000\330R\273\346x\261\274\014\374\273<\3606\317;\000l\332\271\210\202\017\275\276TO=\246\204S\275\300\370\225\272\366\314`=\323\3655\275P\345c\275l|\265<3\"\215\2753V\016\275\321\360\224=j\317D=\355V\232=Z+\243\275\\\201\240\275\020\362\251\355\273&k\t\275\216\303\"\275\020\240\276<\360F\314<\200U\017\275n\344\000=V%\007\275\240P\177;D\275\214\274\000>\n;\035>\213=\000\020\n\275\203\"\232= cy\273C\376g\275`Q\357<\350\247\031\326\274H2\004\275v\343C\275\230\t6\274\030\274\020=\006\301T\275(\202}\274\363\343\023\2752\323U=\357\216\203=y\257\214=\333&\247=F\241\"\275\300\325n\275\266\337t=\246\321\023=\030~`<\320\032?\275\306\'\210\275V\244\342\274y\355\214=FE,\275P\213Y\275\344\330\373\361^\275P1\302\274\013xY\275\033\004\205\275\353\374\226\275\314\254\311\274&\330\227\275\202DF=X\006U\274\263,b\275\274\253\311\274\323\352\225\275\241\025\212=x\033,\274\\\330\226\274\370\325\024<\000\374\276;\336\217S=\023\234G\275\025\242\210=\360\242-\275\240\352\016<4?\204\274\370\312\025<\340Jw\273\350\370\n=\023bK\275&\266Q\275\206\266[=?\203\213\275\017\030\200=V\032\246\2758$Y\274\302\312\n=N\300\030=\340\310V< \253\t\273\271I\244=\336\243\205\275`&\215\274*\364V=73\236=d\251\227\274\311\227\231=\216G\007=d\273\200<\271\207\200=\232\216;=\002m\230\275\000\034\"\273\223R\236\275\010\306]\275\230AO<\344\034\224<\361\306\246=\220k\272\274\317\325\210=\211\225\240=`{.\274\'\203\236=\300z\204;0\265\370< \013\206<\262\000K=\320~\374|\275Sd~\275\247b\247=\204h\377<*\203\027=&\304J\275\033\354S\275\014&\307< wf\274\tE\206=\360c\345\274\035\354\245=\032\026\001=V.\026\275G\353\207\275\312!N=\000?\"\275~\256\210\275\010\326?<\202\t.=P\263\227\274x\310\014<#\002\026\275\2413\203=-,\234=Z\317^=\244\003\245\275\220\346\233\275\032\206==%\352\223=rD6=(\"\010<\314\t\210\274*\033\200\2758\215>\274\271!\241=\250\303\r\274f\313\243\275 \241E\216<\033\004z\2758\367U<\320\335\002=\023\204r\275\320\017\243\275@\014\304:t\177\270<\340-\300\274p\036W\2750/\257\273>\202&=\376\346F\275\2620\237\275\345\334\244=\307\375\240\275\240tR\274~A =X\003T\275\000<\363\273 \377W\273`\214=<\014\022\240<\016\204#\275\256\274h=\310\370+<\301\223\250=\300=\272;\020&(\275\000\2006;=B\241=\316\344`\2750(\355\273{\336C\275\000\344,\275\247\300\200=?4\226=:\321B=Kde\275\353\0101\275g\223\217\275\300,\345\274\344\024\314<\252mo=\200\247\026\275[\rB\275\240\263\343&e=\300%p\274\350\372\003\274\254\215\350\274le\224<\226\344\361\274\016\000*\275\300\305V<\003\254\212\275\340\360\362<\266\371z\275\031\201\202=\262\373m=p\267\276\273P\245\207;P\241\354;T\003\351<\330\033S\274h}X<\300J\371\273\206\r^\275\210z\003=\"\352\211\275H\242k\274\335\320\240=\3007\231\272\220\325\260\273\322\222\034=my\235=\"J\007=F6\321\274\306gf=\260y\260\273x\326)<\206\200J=\330\330C\274f\365\003=\260}\242\2732l/=.\352t= \374\221<\300\274\311\273\253\344\207\275\260\3479\275\274\257\222\274{\307\227= \363];\020\027\360<\360\201?\275\200\032\234\000\275\030\205<\274\254\021\212\274\340:t\273\016\300\233\275\245C\202=\267w\241=\372\201;=]k\247=\034\212\272\274\260W\374\273\353[\221\275\270\006\030<\226/y\275\207\'\236\275`\016C\273k\001\035\275\316%\207\275\200\252c;\200w,\274aE\233=\320\275\227\273\304\347\233<\235\250\212=\020b\251\274.\375p=\265\343\237=.\256\017\275\317c\212\275\302\250<=\313\001\'\275\254\217\217\275vJ\233\275\005\275\240=%\225\242=\3547\202\275" - } - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 20 - } - dim { - dim_value: 16 - } - dim { - dim_value: 50 - } - dim { - dim_value: 40 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 20 - } - dim { - dim_value: 13 - } - dim { - dim_value: 48 - } - dim { - dim_value: 38 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_conv_onnx_irv4_opset8.expect b/test/onnx/expect/TestOperators.test_conv_onnx_irv4_opset8.expect deleted file mode 100644 index 800260746ea9b..0000000000000 --- a/test/onnx/expect/TestOperators.test_conv_onnx_irv4_opset8.expect +++ /dev/null @@ -1,122 +0,0 @@ -ir_version: 3 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - input: "weight" - output: "2" - name: "Conv_0" - op_type: "Conv" - attribute { - name: "dilations" - ints: 1 - ints: 1 - type: INTS - } - attribute { - name: "group" - i: 1 - type: INT - } - attribute { - name: "kernel_shape" - ints: 3 - ints: 3 - type: INTS - } - attribute { - name: "pads" - ints: 0 - ints: 0 - ints: 0 - ints: 0 - type: INTS - } - attribute { - name: "strides" - ints: 1 - ints: 1 - type: INTS - } - } - name: "main_graph" - initializer { - dims: 4 - dims: 2 - dims: 3 - dims: 3 - data_type: 1 - name: "weight" - raw_data: "\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?" - } - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 5 - } - dim { - dim_value: 7 - } - } - } - } - } - input { - name: "weight" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 4 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 4 - } - dim { - dim_value: 3 - } - dim { - dim_value: 5 - } - } - } - } - } -} -opset_import { - version: 8 -} diff --git a/test/onnx/expect/TestOperators.test_convtranspose.expect b/test/onnx/expect/TestOperators.test_convtranspose.expect deleted file mode 100644 index 331ba59d8d7cd..0000000000000 --- a/test/onnx/expect/TestOperators.test_convtranspose.expect +++ /dev/null @@ -1,128 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ConvTranspose_0" - input: "weight" - output: "2" - name: "ConvTranspose_0" - op_type: "ConvTranspose" - attribute { - name: "dilations" - ints: 1 - ints: 1 - type: INTS - } - attribute { - name: "group" - i: 1 - type: INT - } - attribute { - name: "kernel_shape" - ints: 3 - ints: 3 - type: INTS - } - attribute { - name: "output_padding" - ints: 2 - ints: 2 - type: INTS - } - attribute { - name: "pads" - ints: 1 - ints: 1 - ints: 1 - ints: 1 - type: INTS - } - attribute { - name: "strides" - ints: 3 - ints: 3 - type: INTS - } - } - name: "main_graph" - initializer { - dims: 3 - dims: 3 - dims: 3 - dims: 3 - data_type: 1 - name: "weight" - raw_data: "\247\2459\276t\251\032\275\030O\275\275,?R\275#\027.\276\322)\236=Q\2470\276\240\353H\274\322\001\211=\272\332\204\275\336\243\337=@\330\306\232\275\250R\301\275\024\362K=\241\3367>f%\275=\010=\230\274\340\013\031\274\002\006\340=\341\366\010\276\332\007\203=^\231\202\275b\n\344=\331\230\214\275\300\351\033<\316\027\205=yn\007>\020\272\347\274\311\3103>\270\272&\276x\234\014\275(\203D\276\370\231\202\312\002\363=rG\307=\3031\035>\256\356\220=\"\217\321=\311\210#>\350\322\036\275\364\261\031\276}\325\301\275pt\322\274\360=\255\274\000\366\252\272\212\336\341=,\337|=\014\266\021\276`\315l\275\010q9\275\252\340\357=\'\374\216\275\263\346\244\275\200z\375\274\264\203H\275\020\026B\275\000\322@\276\375\225/>\362\304\321=/\200\272\275\\\352\365\275\340c\333;\302\221\340=\277l\r\276\250\333\224\275" - } - input { - name: "onnx::ConvTranspose_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - dim { - dim_value: 5 - } - } - } - } - } - input { - name: "weight" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 3 - } - dim { - dim_value: 3 - } - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 12 - } - dim { - dim_value: 15 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_cos.expect b/test/onnx/expect/TestOperators.test_cos.expect deleted file mode 100644 index 1fd776c55f64a..0000000000000 --- a/test/onnx/expect/TestOperators.test_cos.expect +++ /dev/null @@ -1,47 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Cos_0" - output: "1" - name: "Cos_0" - op_type: "Cos" - } - name: "main_graph" - input { - name: "onnx::Cos_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_cumsum.expect b/test/onnx/expect/TestOperators.test_cumsum.expect deleted file mode 100644 index 47c2c3ae7bf2c..0000000000000 --- a/test/onnx/expect/TestOperators.test_cumsum.expect +++ /dev/null @@ -1,67 +0,0 @@ -ir_version: 6 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::CumSum_1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 6 - raw_data: "\001\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::CumSum_0" - input: "onnx::CumSum_1" - output: "2" - name: "CumSum_2" - op_type: "CumSum" - } - name: "main_graph" - input { - name: "onnx::CumSum_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 11 -} diff --git a/test/onnx/expect/TestOperators.test_det.expect b/test/onnx/expect/TestOperators.test_det.expect deleted file mode 100644 index 117cf2045acd6..0000000000000 --- a/test/onnx/expect/TestOperators.test_det.expect +++ /dev/null @@ -1,53 +0,0 @@ -ir_version: 6 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Det_0" - output: "1" - name: "Det_0" - op_type: "Det" - } - name: "main_graph" - input { - name: "onnx::Det_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 5 - } - dim { - dim_value: 5 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 11 -} diff --git a/test/onnx/expect/TestOperators.test_dict.expect b/test/onnx/expect/TestOperators.test_dict.expect deleted file mode 100644 index badcb04fee1f4..0000000000000 --- a/test/onnx/expect/TestOperators.test_dict.expect +++ /dev/null @@ -1,64 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Add_1" - input: "onnx::Add_0" - output: "2" - name: "Add_0" - op_type: "Add" - } - name: "main_graph" - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } - input { - name: "onnx::Add_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_dict_str.expect b/test/onnx/expect/TestOperators.test_dict_str.expect deleted file mode 100644 index cfec443930718..0000000000000 --- a/test/onnx/expect/TestOperators.test_dict_str.expect +++ /dev/null @@ -1,67 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Add_1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\000@" - } - type: TENSOR - } - } - node { - input: "onnx::Add_0" - input: "onnx::Add_1" - output: "2" - name: "Add_2" - op_type: "Add" - } - name: "main_graph" - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_dim.expect b/test/onnx/expect/TestOperators.test_dim.expect deleted file mode 100644 index 3d0b00ce1c312..0000000000000 --- a/test/onnx/expect/TestOperators.test_dim.expect +++ /dev/null @@ -1,32 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\000@" - } - type: TENSOR - } - } - name: "main_graph" - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_dropout.expect b/test/onnx/expect/TestOperators.test_dropout.expect deleted file mode 100644 index 44705902f9499..0000000000000 --- a/test/onnx/expect/TestOperators.test_dropout.expect +++ /dev/null @@ -1,46 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "x" - output: "1" - name: "ReduceMax_0" - op_type: "ReduceMax" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "x" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_dropout_default.expect b/test/onnx/expect/TestOperators.test_dropout_default.expect deleted file mode 100644 index c2fde7e6543f4..0000000000000 --- a/test/onnx/expect/TestOperators.test_dropout_default.expect +++ /dev/null @@ -1,81 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Dropout_1" - name: "Constant_2" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\000?" - } - type: TENSOR - } - } - node { - output: "onnx::Dropout_2" - name: "Constant_3" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 9 - raw_data: "\001" - } - type: TENSOR - } - } - node { - input: "x" - input: "onnx::Dropout_1" - input: "onnx::Dropout_2" - output: "onnx::ReduceMax_3" - output: "4" - name: "Dropout_4" - op_type: "Dropout" - } - node { - input: "onnx::ReduceMax_3" - output: "5" - name: "ReduceMax_5" - op_type: "ReduceMax" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "x" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "5" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_dropout_opset12.expect b/test/onnx/expect/TestOperators.test_dropout_opset12.expect deleted file mode 100644 index a36ffcd3df98a..0000000000000 --- a/test/onnx/expect/TestOperators.test_dropout_opset12.expect +++ /dev/null @@ -1,46 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "x" - output: "1" - name: "ReduceMax_0" - op_type: "ReduceMax" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "x" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 12 -} diff --git a/test/onnx/expect/TestOperators.test_dropout_training.expect b/test/onnx/expect/TestOperators.test_dropout_training.expect deleted file mode 100644 index c2fde7e6543f4..0000000000000 --- a/test/onnx/expect/TestOperators.test_dropout_training.expect +++ /dev/null @@ -1,81 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Dropout_1" - name: "Constant_2" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\000?" - } - type: TENSOR - } - } - node { - output: "onnx::Dropout_2" - name: "Constant_3" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 9 - raw_data: "\001" - } - type: TENSOR - } - } - node { - input: "x" - input: "onnx::Dropout_1" - input: "onnx::Dropout_2" - output: "onnx::ReduceMax_3" - output: "4" - name: "Dropout_4" - op_type: "Dropout" - } - node { - input: "onnx::ReduceMax_3" - output: "5" - name: "ReduceMax_5" - op_type: "ReduceMax" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "x" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "5" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_dropout_training_opset12.expect b/test/onnx/expect/TestOperators.test_dropout_training_opset12.expect deleted file mode 100644 index d7e2fddf5bab6..0000000000000 --- a/test/onnx/expect/TestOperators.test_dropout_training_opset12.expect +++ /dev/null @@ -1,81 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Dropout_1" - name: "Constant_2" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\000?" - } - type: TENSOR - } - } - node { - output: "onnx::Dropout_2" - name: "Constant_3" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 9 - raw_data: "\001" - } - type: TENSOR - } - } - node { - input: "x" - input: "onnx::Dropout_1" - input: "onnx::Dropout_2" - output: "onnx::ReduceMax_3" - output: "4" - name: "Dropout_4" - op_type: "Dropout" - } - node { - input: "onnx::ReduceMax_3" - output: "5" - name: "ReduceMax_5" - op_type: "ReduceMax" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "x" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "5" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 12 -} diff --git a/test/onnx/expect/TestOperators.test_dynamic_axes_add.expect b/test/onnx/expect/TestOperators.test_dynamic_axes_add.expect deleted file mode 100644 index 5a3b63412c161..0000000000000 --- a/test/onnx/expect/TestOperators.test_dynamic_axes_add.expect +++ /dev/null @@ -1,64 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input_1" - input: "input_2" - output: "2" - name: "Add_0" - op_type: "Add" - } - name: "main_graph" - input { - name: "input_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_param: "input_1_dim_1" - } - } - } - } - } - input { - name: "input_2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_param: "input_2_dim_1" - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_param: "Add2_dim_1" - } - } - } - } - } -} -opset_import { - version: 12 -} diff --git a/test/onnx/expect/TestOperators.test_dynamic_axes_add_inputs_same_symbolic_shape.expect b/test/onnx/expect/TestOperators.test_dynamic_axes_add_inputs_same_symbolic_shape.expect deleted file mode 100644 index abcb702b6ae7a..0000000000000 --- a/test/onnx/expect/TestOperators.test_dynamic_axes_add_inputs_same_symbolic_shape.expect +++ /dev/null @@ -1,48 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input_1" - input: "input_1" - output: "1" - name: "Add_0" - op_type: "Add" - } - name: "main_graph" - input { - name: "input_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_param: "input_1_dim_1" - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_param: "input_1_dim_1" - } - } - } - } - } -} -opset_import { - version: 12 -} diff --git a/test/onnx/expect/TestOperators.test_dynamic_axes_matmul.expect b/test/onnx/expect/TestOperators.test_dynamic_axes_matmul.expect deleted file mode 100644 index 035c0fc40958f..0000000000000 --- a/test/onnx/expect/TestOperators.test_dynamic_axes_matmul.expect +++ /dev/null @@ -1,73 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input_1" - input: "input_2" - output: "2" - name: "MatMul_0" - op_type: "MatMul" - } - name: "main_graph" - input { - name: "input_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_param: "input_1_dim_1" - } - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "input_2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 4 - } - dim { - dim_param: "input_2_dim_2" - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_param: "input_1_dim_1" - } - dim { - dim_param: "input_2_dim_2" - } - } - } - } - } -} -opset_import { - version: 12 -} diff --git a/test/onnx/expect/TestOperators.test_dynamic_axes_reduce_mean.expect b/test/onnx/expect/TestOperators.test_dynamic_axes_reduce_mean.expect deleted file mode 100644 index f639bb9442e04..0000000000000 --- a/test/onnx/expect/TestOperators.test_dynamic_axes_reduce_mean.expect +++ /dev/null @@ -1,60 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - output: "1" - name: "ReduceMean_0" - op_type: "ReduceMean" - attribute { - name: "axes" - ints: 1 - type: INTS - } - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_param: "input_dim_1" - } - dim { - dim_param: "input_dim_2" - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_param: "input_dim_2" - } - } - } - } - } -} -opset_import { - version: 12 -} diff --git a/test/onnx/expect/TestOperators.test_dynamic_axes_unchange.expect b/test/onnx/expect/TestOperators.test_dynamic_axes_unchange.expect deleted file mode 100644 index 4ee7128f42b25..0000000000000 --- a/test/onnx/expect/TestOperators.test_dynamic_axes_unchange.expect +++ /dev/null @@ -1,76 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - output: "onnx::Softmax_1" - name: "Transpose_0" - op_type: "Transpose" - attribute { - name: "perm" - ints: 1 - ints: 0 - type: INTS - } - } - node { - input: "onnx::Softmax_1" - output: "onnx::Transpose_2" - name: "Softmax_1" - op_type: "Softmax" - attribute { - name: "axis" - i: 1 - type: INT - } - } - node { - input: "onnx::Transpose_2" - output: "3" - name: "Transpose_2" - op_type: "Transpose" - attribute { - name: "perm" - ints: 1 - ints: 0 - type: INTS - } - } - name: "main_graph" - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_param: "input_dim_1" - } - } - } - } - } - output { - name: "3" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_param: "input_dim_1" - } - } - } - } - } -} -opset_import { - version: 12 -} diff --git a/test/onnx/expect/TestOperators.test_elu.expect b/test/onnx/expect/TestOperators.test_elu.expect deleted file mode 100644 index 1e11d470c4ec2..0000000000000 --- a/test/onnx/expect/TestOperators.test_elu.expect +++ /dev/null @@ -1,64 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - output: "1" - name: "Elu_0" - op_type: "Elu" - attribute { - name: "alpha" - f: 1 - type: FLOAT - } - } - name: "main_graph" - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_embedding_bags.expect b/test/onnx/expect/TestOperators.test_embedding_bags.expect deleted file mode 100644 index d083b3c58255b..0000000000000 --- a/test/onnx/expect/TestOperators.test_embedding_bags.expect +++ /dev/null @@ -1,433 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Loop_33" - name: "Constant_9" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 9 - raw_data: "\001" - } - type: TENSOR - } - } - node { - output: "5" - name: "Constant_10" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "input" - output: "onnx::Gather_6" - name: "Shape_11" - op_type: "Shape" - } - node { - output: "onnx::Gather_7" - name: "Constant_12" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Gather_6" - input: "onnx::Gather_7" - output: "onnx::Unsqueeze_8" - name: "Gather_13" - op_type: "Gather" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - output: "onnx::Unsqueeze_9" - name: "Constant_14" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Unsqueeze_8" - input: "onnx::Unsqueeze_9" - output: "onnx::Concat_10" - name: "Unsqueeze_15" - op_type: "Unsqueeze" - } - node { - input: "offsets" - input: "onnx::Concat_10" - output: "onnx::Slice_11" - name: "Concat_16" - op_type: "Concat" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - output: "onnx::Slice_12" - name: "Constant_17" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_13" - name: "Constant_18" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_14" - name: "Constant_19" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\177" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_15" - name: "Constant_20" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Slice_11" - input: "onnx::Slice_13" - input: "onnx::Slice_14" - input: "onnx::Slice_12" - input: "onnx::Slice_15" - output: "onnx::Shape_16" - name: "Slice_21" - op_type: "Slice" - } - node { - input: "onnx::Shape_16" - output: "onnx::Gather_17" - name: "Shape_22" - op_type: "Shape" - } - node { - output: "onnx::Gather_18" - name: "Constant_23" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Gather_17" - input: "onnx::Gather_18" - output: "onnx::Loop_19" - name: "Gather_24" - op_type: "Gather" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "onnx::Loop_19" - input: "onnx::Loop_33" - output: "20" - name: "Loop_25" - op_type: "Loop" - attribute { - name: "body" - g { - node { - input: "onnx::Slice_11" - input: "21" - output: "23" - name: "Gather_26" - op_type: "Gather" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "onnx::Shape_16" - input: "21" - output: "24" - name: "Gather_27" - op_type: "Gather" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - output: "25" - name: "Constant_28" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "23" - input: "25" - output: "26" - name: "Unsqueeze_29" - op_type: "Unsqueeze" - } - node { - output: "27" - name: "Constant_30" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "24" - input: "27" - output: "28" - name: "Unsqueeze_31" - op_type: "Unsqueeze" - } - node { - input: "input" - input: "26" - input: "28" - input: "5" - output: "29" - name: "Slice_32" - op_type: "Slice" - } - node { - input: "weight" - input: "29" - output: "30" - name: "Gather_33" - op_type: "Gather" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "30" - output: "31" - name: "ReduceMean_34" - op_type: "ReduceMean" - attribute { - name: "axes" - ints: 0 - type: INTS - } - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - node { - input: "onnx::Loop_33" - output: "32" - name: "Cast_35" - op_type: "Cast" - attribute { - name: "to" - i: 9 - type: INT - } - } - name: "sub_graph" - input { - name: "21" - type { - tensor_type { - elem_type: 7 - shape { - } - } - } - } - input { - name: "22" - type { - tensor_type { - elem_type: 9 - shape { - } - } - } - } - output { - name: "32" - type { - tensor_type { - elem_type: 9 - shape { - } - } - } - } - output { - name: "31" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_param: "Loop20_dim_1" - } - } - } - } - } - } - type: GRAPH - } - } - name: "main_graph" - initializer { - dims: 10 - dims: 8 - data_type: 1 - name: "weight" - raw_data: "\264\314\344\275\017A\376\276\313\374&>J\266a\277s\306\\=\212\032+?\211[t\275\344[\357\276Dk\\\276OKb?\234\'B\277A\334\274\2767N\257\276\320s\263\277\371+\244>:\314\202\277K\200L??\001\275\275\236u4\2774\032\315\277\214\004\224>Z\320\372>\267B\305\276\346G6\277N\265.\276\343\316\272\277t\364a>\201)|>p\223\251\277Qm2?\346\275)\277\354\235\233?\027X\277\277\253\206a?\354\335\226\277L\032o\277\251J\021\277\311\360\215\276\312\274\013\300\252\320\273>\220\"p?\267\020\000\222\233\314?\334\360?\275|t\303\277\214\351\000\300\3065\302\2775\206\306>X\251\227\277x\2160?U^\251?d\221\350?\237F.?\rp9?9X\004=/c\324\277SL\360\277\'\274\332\356\226\275\211\035\241>*\271\204\277>\025W>\036K\035?\036\233\200=\035\313\250\276\017\003\346\277\374p_?\313WD?!\006\351\275\232\\q\277\230\007A?" - } - input { - name: "input" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "offsets" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_value: 1 - } - } - } - } - } - input { - name: "weight" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 10 - } - dim { - dim_value: 8 - } - } - } - } - } - output { - name: "20" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_param: "Loop20_dim_0" - } - dim { - dim_param: "Loop20_dim_1" - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_empty_like.expect b/test/onnx/expect/TestOperators.test_empty_like.expect deleted file mode 100644 index 1438c1d6f1701..0000000000000 --- a/test/onnx/expect/TestOperators.test_empty_like.expect +++ /dev/null @@ -1,40 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 5 - dims: 8 - data_type: 1 - raw_data: "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - name: "main_graph" - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 5 - } - dim { - dim_value: 8 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_equal.expect b/test/onnx/expect/TestOperators.test_equal.expect deleted file mode 100644 index ab55fa8ac4e8d..0000000000000 --- a/test/onnx/expect/TestOperators.test_equal.expect +++ /dev/null @@ -1,76 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Equal_0" - input: "onnx::Equal_1" - output: "2" - name: "Equal_0" - op_type: "Equal" - } - name: "main_graph" - input { - name: "onnx::Equal_0" - type { - tensor_type { - elem_type: 6 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 1 - } - } - } - } - } - input { - name: "onnx::Equal_1" - type { - tensor_type { - elem_type: 6 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 9 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_erf.expect b/test/onnx/expect/TestOperators.test_erf.expect deleted file mode 100644 index c0a41009a84f0..0000000000000 --- a/test/onnx/expect/TestOperators.test_erf.expect +++ /dev/null @@ -1,59 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Erf_0" - output: "1" - name: "Erf_0" - op_type: "Erf" - } - name: "main_graph" - input { - name: "onnx::Erf_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_exp.expect b/test/onnx/expect/TestOperators.test_exp.expect deleted file mode 100644 index f5b5963306968..0000000000000 --- a/test/onnx/expect/TestOperators.test_exp.expect +++ /dev/null @@ -1,47 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Exp_0" - output: "1" - name: "Exp_0" - op_type: "Exp" - } - name: "main_graph" - input { - name: "onnx::Exp_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_expand.expect b/test/onnx/expect/TestOperators.test_expand.expect deleted file mode 100644 index d58153d45854a..0000000000000 --- a/test/onnx/expect/TestOperators.test_expand.expect +++ /dev/null @@ -1,143 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::ConstantOfShape_11" - name: "Constant_4" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\003\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::ConstantOfShape_11" - output: "onnx::Mul_3" - name: "ConstantOfShape_5" - op_type: "ConstantOfShape" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Mul_4" - name: "Constant_6" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\377" - } - type: TENSOR - } - } - node { - input: "onnx::Mul_3" - input: "onnx::Mul_4" - output: "onnx::Equal_5" - name: "Mul_7" - op_type: "Mul" - } - node { - output: "onnx::Equal_6" - name: "Constant_8" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 3 - data_type: 7 - raw_data: "\004\000\000\000\000\000\000\000\006\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Equal_6" - input: "onnx::Equal_5" - output: "onnx::Where_7" - name: "Equal_9" - op_type: "Equal" - } - node { - output: "onnx::Where_8" - name: "Constant_10" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 3 - data_type: 7 - raw_data: "\004\000\000\000\000\000\000\000\006\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Where_7" - input: "onnx::Mul_3" - input: "onnx::Where_8" - output: "onnx::Expand_9" - name: "Where_11" - op_type: "Where" - } - node { - input: "onnx::Expand_0" - input: "onnx::Expand_9" - output: "10" - name: "Expand_12" - op_type: "Expand" - } - name: "main_graph" - input { - name: "onnx::Expand_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 6 - } - dim { - dim_value: 1 - } - } - } - } - } - output { - name: "10" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 4 - } - dim { - dim_value: 6 - } - dim { - dim_value: 2 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_flatten.expect b/test/onnx/expect/TestOperators.test_flatten.expect deleted file mode 100644 index ae723f1f7e19c..0000000000000 --- a/test/onnx/expect/TestOperators.test_flatten.expect +++ /dev/null @@ -1,139 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Shape_0" - output: "onnx::Slice_1" - name: "Shape_4" - op_type: "Shape" - } - node { - output: "onnx::Slice_2" - name: "Constant_5" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_3" - name: "Constant_6" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_4" - name: "Constant_7" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Slice_1" - input: "onnx::Slice_3" - input: "onnx::Slice_4" - input: "onnx::Slice_2" - output: "onnx::Concat_5" - name: "Slice_8" - op_type: "Slice" - } - node { - output: "onnx::Concat_6" - name: "Constant_9" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\377" - } - type: TENSOR - } - } - node { - input: "onnx::Concat_5" - input: "onnx::Concat_6" - output: "onnx::Reshape_7" - name: "Concat_10" - op_type: "Concat" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "onnx::Shape_0" - input: "onnx::Reshape_7" - output: "8" - name: "Reshape_11" - op_type: "Reshape" - attribute { - name: "allowzero" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::Shape_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "8" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 24 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_flatten2D.expect b/test/onnx/expect/TestOperators.test_flatten2D.expect deleted file mode 100644 index 020ce08f4d341..0000000000000 --- a/test/onnx/expect/TestOperators.test_flatten2D.expect +++ /dev/null @@ -1,58 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Flatten_0" - output: "1" - name: "Flatten_0" - op_type: "Flatten" - attribute { - name: "axis" - i: 1 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::Flatten_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 24 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_fmod.expect b/test/onnx/expect/TestOperators.test_fmod.expect deleted file mode 100644 index 30b1c2195704f..0000000000000 --- a/test/onnx/expect/TestOperators.test_fmod.expect +++ /dev/null @@ -1,78 +0,0 @@ -ir_version: 5 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Mod_0" - input: "onnx::Mod_1" - output: "2" - name: "Mod_0" - op_type: "Mod" - attribute { - name: "fmod" - i: 1 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::Mod_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "onnx::Mod_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 1 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 10 -} diff --git a/test/onnx/expect/TestOperators.test_frobenius_norm.expect b/test/onnx/expect/TestOperators.test_frobenius_norm.expect deleted file mode 100644 index d1e1154096e28..0000000000000 --- a/test/onnx/expect/TestOperators.test_frobenius_norm.expect +++ /dev/null @@ -1,64 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "x" - output: "1" - name: "ReduceL2_0" - op_type: "ReduceL2" - attribute { - name: "axes" - ints: 0 - ints: 1 - type: INTS - } - attribute { - name: "keepdims" - i: 1 - type: INT - } - } - name: "main_graph" - input { - name: "x" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_full.expect b/test/onnx/expect/TestOperators.test_full.expect deleted file mode 100644 index 3346313e213a5..0000000000000 --- a/test/onnx/expect/TestOperators.test_full.expect +++ /dev/null @@ -1,40 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 3 - dims: 4 - data_type: 1 - raw_data: "\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@" - } - type: TENSOR - } - } - name: "main_graph" - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_full_like.expect b/test/onnx/expect/TestOperators.test_full_like.expect deleted file mode 100644 index 3346313e213a5..0000000000000 --- a/test/onnx/expect/TestOperators.test_full_like.expect +++ /dev/null @@ -1,40 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 3 - dims: 4 - data_type: 1 - raw_data: "\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@" - } - type: TENSOR - } - } - name: "main_graph" - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_gather.expect b/test/onnx/expect/TestOperators.test_gather.expect deleted file mode 100644 index cc3d49088adbc..0000000000000 --- a/test/onnx/expect/TestOperators.test_gather.expect +++ /dev/null @@ -1,78 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::GatherElements_0" - input: "onnx::GatherElements_1" - output: "2" - name: "GatherElements_0" - op_type: "GatherElements" - attribute { - name: "axis" - i: 1 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::GatherElements_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::GatherElements_1" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_gather_opset11.expect b/test/onnx/expect/TestOperators.test_gather_opset11.expect deleted file mode 100644 index bbac72d4e0a1e..0000000000000 --- a/test/onnx/expect/TestOperators.test_gather_opset11.expect +++ /dev/null @@ -1,78 +0,0 @@ -ir_version: 6 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::GatherElements_0" - input: "onnx::GatherElements_1" - output: "2" - name: "GatherElements_0" - op_type: "GatherElements" - attribute { - name: "axis" - i: 1 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::GatherElements_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::GatherElements_1" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 11 -} diff --git a/test/onnx/expect/TestOperators.test_ge.expect b/test/onnx/expect/TestOperators.test_ge.expect deleted file mode 100644 index 907cf86bdab8b..0000000000000 --- a/test/onnx/expect/TestOperators.test_ge.expect +++ /dev/null @@ -1,64 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::GreaterOrEqual_0" - input: "onnx::GreaterOrEqual_1" - output: "2" - name: "GreaterOrEqual_0" - op_type: "GreaterOrEqual" - } - name: "main_graph" - input { - name: "onnx::GreaterOrEqual_0" - type { - tensor_type { - elem_type: 6 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "onnx::GreaterOrEqual_1" - type { - tensor_type { - elem_type: 6 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 9 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_gelu.expect b/test/onnx/expect/TestOperators.test_gelu.expect deleted file mode 100644 index e862eed7c8ae5..0000000000000 --- a/test/onnx/expect/TestOperators.test_gelu.expect +++ /dev/null @@ -1,126 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Div_1" - name: "Constant_3" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\363\004\265?" - } - type: TENSOR - } - } - node { - input: "onnx::Div_0" - input: "onnx::Div_1" - output: "onnx::Erf_2" - name: "Div_4" - op_type: "Div" - } - node { - input: "onnx::Erf_2" - output: "onnx::Add_3" - name: "Erf_5" - op_type: "Erf" - } - node { - output: "onnx::Add_4" - name: "Constant_6" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\200?" - } - type: TENSOR - } - } - node { - input: "onnx::Add_3" - input: "onnx::Add_4" - output: "onnx::Mul_5" - name: "Add_7" - op_type: "Add" - } - node { - input: "onnx::Div_0" - input: "onnx::Mul_5" - output: "onnx::Mul_6" - name: "Mul_8" - op_type: "Mul" - } - node { - output: "onnx::Mul_7" - name: "Constant_9" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\000?" - } - type: TENSOR - } - } - node { - input: "onnx::Mul_6" - input: "onnx::Mul_7" - output: "8" - name: "Mul_10" - op_type: "Mul" - } - name: "main_graph" - input { - name: "onnx::Div_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - dim { - dim_value: 5 - } - } - } - } - } - output { - name: "8" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - dim { - dim_value: 5 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_gt.expect b/test/onnx/expect/TestOperators.test_gt.expect deleted file mode 100644 index 2f1ffec0f486f..0000000000000 --- a/test/onnx/expect/TestOperators.test_gt.expect +++ /dev/null @@ -1,76 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Greater_0" - input: "onnx::Greater_1" - output: "2" - name: "Greater_0" - op_type: "Greater" - } - name: "main_graph" - input { - name: "onnx::Greater_0" - type { - tensor_type { - elem_type: 6 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 1 - } - } - } - } - } - input { - name: "onnx::Greater_1" - type { - tensor_type { - elem_type: 6 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 9 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_hardtanh.expect b/test/onnx/expect/TestOperators.test_hardtanh.expect deleted file mode 100644 index 6a669e64eadcb..0000000000000 --- a/test/onnx/expect/TestOperators.test_hardtanh.expect +++ /dev/null @@ -1,75 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Clip_1" - name: "Constant_2" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\000\277" - } - type: TENSOR - } - } - node { - output: "onnx::Clip_2" - name: "Constant_3" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\000?" - } - type: TENSOR - } - } - node { - input: "input" - input: "onnx::Clip_1" - input: "onnx::Clip_2" - output: "3" - name: "Clip_4" - op_type: "Clip" - } - name: "main_graph" - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "3" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_implicit_expand.expect b/test/onnx/expect/TestOperators.test_implicit_expand.expect deleted file mode 100644 index ae2d5281ecee7..0000000000000 --- a/test/onnx/expect/TestOperators.test_implicit_expand.expect +++ /dev/null @@ -1,61 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Add_1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\200?" - } - type: TENSOR - } - } - node { - input: "onnx::Add_0" - input: "onnx::Add_1" - output: "2" - name: "Add_2" - op_type: "Add" - } - name: "main_graph" - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_index.expect b/test/onnx/expect/TestOperators.test_index.expect deleted file mode 100644 index 2251ccb7a6e08..0000000000000 --- a/test/onnx/expect/TestOperators.test_index.expect +++ /dev/null @@ -1,63 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Gather_1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Gather_0" - input: "onnx::Gather_1" - output: "2" - name: "Gather_2" - op_type: "Gather" - attribute { - name: "axis" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::Gather_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_isnan.expect b/test/onnx/expect/TestOperators.test_isnan.expect deleted file mode 100644 index 90e5bc975ed62..0000000000000 --- a/test/onnx/expect/TestOperators.test_isnan.expect +++ /dev/null @@ -1,41 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::IsNaN_0" - output: "1" - name: "IsNaN_0" - op_type: "IsNaN" - } - name: "main_graph" - input { - name: "onnx::IsNaN_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 9 - shape { - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_layer_norm_aten.expect b/test/onnx/expect/TestOperators.test_layer_norm_aten.expect deleted file mode 100644 index b0489aea3084a..0000000000000 --- a/test/onnx/expect/TestOperators.test_layer_norm_aten.expect +++ /dev/null @@ -1,117 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - input: "weight" - input: "bias" - output: "3" - name: "LayerNormalization_0" - op_type: "LayerNormalization" - attribute { - name: "axis" - i: -2 - type: INT - } - attribute { - name: "epsilon" - f: 1e-05 - type: FLOAT - } - } - name: "main_graph" - initializer { - dims: 10 - dims: 10 - data_type: 1 - name: "weight" - raw_data: "\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?" - } - initializer { - dims: 10 - dims: 10 - data_type: 1 - name: "bias" - raw_data: "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" - } - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 20 - } - dim { - dim_value: 5 - } - dim { - dim_value: 10 - } - dim { - dim_value: 10 - } - } - } - } - } - input { - name: "weight" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 10 - } - dim { - dim_value: 10 - } - } - } - } - } - input { - name: "bias" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 10 - } - dim { - dim_value: 10 - } - } - } - } - } - output { - name: "3" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 20 - } - dim { - dim_value: 5 - } - dim { - dim_value: 10 - } - dim { - dim_value: 10 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_le.expect b/test/onnx/expect/TestOperators.test_le.expect deleted file mode 100644 index 647ae6bf00e4d..0000000000000 --- a/test/onnx/expect/TestOperators.test_le.expect +++ /dev/null @@ -1,64 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::LessOrEqual_0" - input: "onnx::LessOrEqual_1" - output: "2" - name: "LessOrEqual_0" - op_type: "LessOrEqual" - } - name: "main_graph" - input { - name: "onnx::LessOrEqual_0" - type { - tensor_type { - elem_type: 6 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "onnx::LessOrEqual_1" - type { - tensor_type { - elem_type: 6 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 9 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_linear.expect b/test/onnx/expect/TestOperators.test_linear.expect deleted file mode 100644 index daad8d0dd6aeb..0000000000000 --- a/test/onnx/expect/TestOperators.test_linear.expect +++ /dev/null @@ -1,106 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Gemm_0" - input: "weight" - input: "bias" - output: "3" - name: "Gemm_0" - op_type: "Gemm" - attribute { - name: "alpha" - f: 1 - type: FLOAT - } - attribute { - name: "beta" - f: 1 - type: FLOAT - } - attribute { - name: "transB" - i: 1 - type: INT - } - } - name: "main_graph" - initializer { - dims: 5 - dims: 4 - data_type: 1 - name: "weight" - raw_data: "\212\332\356>@\265u>p\303E\275 \320\306\274\354\201\221>\004\354\261\276\2746*>8\247)\276\340\035\224>\024\2446\276\200\211\312<\224\344,>D\356\257>\320\202\226\275\364\213\351>z\226\330\276\310\250\266\275\352F\377\276\000\250)=\244K\021>" - } - initializer { - dims: 5 - data_type: 1 - name: "bias" - raw_data: "\324BO\276@\245T>\350\377\245\275\374u\336\276&\212\304>" - } - input { - name: "onnx::Gemm_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "weight" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 5 - } - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "bias" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 5 - } - } - } - } - } - output { - name: "3" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 5 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_log_sigmoid.expect b/test/onnx/expect/TestOperators.test_log_sigmoid.expect deleted file mode 100644 index d2ed4d9753119..0000000000000 --- a/test/onnx/expect/TestOperators.test_log_sigmoid.expect +++ /dev/null @@ -1,65 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Sigmoid_0" - output: "onnx::Log_1" - name: "Sigmoid_0" - op_type: "Sigmoid" - } - node { - input: "onnx::Log_1" - output: "2" - name: "Log_1" - op_type: "Log" - } - name: "main_graph" - input { - name: "onnx::Sigmoid_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_logsoftmax.expect b/test/onnx/expect/TestOperators.test_logsoftmax.expect deleted file mode 100644 index 1594e5138c8c7..0000000000000 --- a/test/onnx/expect/TestOperators.test_logsoftmax.expect +++ /dev/null @@ -1,64 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - output: "1" - name: "LogSoftmax_0" - op_type: "LogSoftmax" - attribute { - name: "axis" - i: 3 - type: INT - } - } - name: "main_graph" - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_lstm_none_sequence_lens.expect b/test/onnx/expect/TestOperators.test_lstm_none_sequence_lens.expect deleted file mode 100644 index 745fac2e6a2d2..0000000000000 --- a/test/onnx/expect/TestOperators.test_lstm_none_sequence_lens.expect +++ /dev/null @@ -1,44 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "7" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - dims: 2 - dims: 3 - data_type: 1 - raw_data: "\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?" - } - type: TENSOR - } - } - name: "main_graph" - output { - name: "7" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 12 -} diff --git a/test/onnx/expect/TestOperators.test_lt.expect b/test/onnx/expect/TestOperators.test_lt.expect deleted file mode 100644 index 65dab704d64a1..0000000000000 --- a/test/onnx/expect/TestOperators.test_lt.expect +++ /dev/null @@ -1,76 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Less_0" - input: "onnx::Less_1" - output: "2" - name: "Less_0" - op_type: "Less" - } - name: "main_graph" - input { - name: "onnx::Less_0" - type { - tensor_type { - elem_type: 6 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 1 - } - } - } - } - } - input { - name: "onnx::Less_1" - type { - tensor_type { - elem_type: 6 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 9 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_master_opset.expect b/test/onnx/expect/TestOperators.test_master_opset.expect deleted file mode 100644 index 12e10464a2677..0000000000000 --- a/test/onnx/expect/TestOperators.test_master_opset.expect +++ /dev/null @@ -1,64 +0,0 @@ -ir_version: 5 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Add_0" - input: "onnx::Add_1" - output: "2" - name: "Add_0" - op_type: "Add" - } - name: "main_graph" - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::Add_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 10 -} diff --git a/test/onnx/expect/TestOperators.test_max.expect b/test/onnx/expect/TestOperators.test_max.expect deleted file mode 100644 index 24b5e74e3dce1..0000000000000 --- a/test/onnx/expect/TestOperators.test_max.expect +++ /dev/null @@ -1,64 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Max_0" - input: "onnx::Max_1" - output: "2" - name: "Max_0" - op_type: "Max" - } - name: "main_graph" - input { - name: "onnx::Max_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "onnx::Max_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_maxpool.expect b/test/onnx/expect/TestOperators.test_maxpool.expect deleted file mode 100644 index 0dbed3837a36e..0000000000000 --- a/test/onnx/expect/TestOperators.test_maxpool.expect +++ /dev/null @@ -1,79 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::MaxPool_0" - output: "1" - name: "MaxPool_0" - op_type: "MaxPool" - attribute { - name: "ceil_mode" - i: 0 - type: INT - } - attribute { - name: "dilations" - ints: 1 - type: INTS - } - attribute { - name: "kernel_shape" - ints: 3 - type: INTS - } - attribute { - name: "pads" - ints: 0 - ints: 0 - type: INTS - } - attribute { - name: "strides" - ints: 2 - type: INTS - } - } - name: "main_graph" - input { - name: "onnx::MaxPool_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 20 - } - dim { - dim_value: 16 - } - dim { - dim_value: 50 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 20 - } - dim { - dim_value: 16 - } - dim { - dim_value: 24 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_maxpool_dilations.expect b/test/onnx/expect/TestOperators.test_maxpool_dilations.expect deleted file mode 100644 index 254d4d45c4588..0000000000000 --- a/test/onnx/expect/TestOperators.test_maxpool_dilations.expect +++ /dev/null @@ -1,79 +0,0 @@ -ir_version: 5 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::MaxPool_0" - output: "1" - name: "MaxPool_0" - op_type: "MaxPool" - attribute { - name: "ceil_mode" - i: 0 - type: INT - } - attribute { - name: "dilations" - ints: 2 - type: INTS - } - attribute { - name: "kernel_shape" - ints: 2 - type: INTS - } - attribute { - name: "pads" - ints: 0 - ints: 0 - type: INTS - } - attribute { - name: "strides" - ints: 1 - type: INTS - } - } - name: "main_graph" - input { - name: "onnx::MaxPool_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 20 - } - dim { - dim_value: 16 - } - dim { - dim_value: 50 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 20 - } - dim { - dim_value: 16 - } - dim { - dim_value: 48 - } - } - } - } - } -} -opset_import { - version: 10 -} diff --git a/test/onnx/expect/TestOperators.test_maxpool_indices.expect b/test/onnx/expect/TestOperators.test_maxpool_indices.expect deleted file mode 100644 index e4c1038447d5c..0000000000000 --- a/test/onnx/expect/TestOperators.test_maxpool_indices.expect +++ /dev/null @@ -1,179 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::MaxPool_0" - output: "1" - output: "onnx::Sub_2" - name: "MaxPool_3" - op_type: "MaxPool" - attribute { - name: "ceil_mode" - i: 0 - type: INT - } - attribute { - name: "dilations" - ints: 1 - type: INTS - } - attribute { - name: "kernel_shape" - ints: 3 - type: INTS - } - attribute { - name: "pads" - ints: 0 - ints: 0 - type: INTS - } - attribute { - name: "strides" - ints: 2 - type: INTS - } - } - node { - input: "onnx::MaxPool_0" - output: "3" - output: "onnx::Slice_4" - name: "MaxPool_4" - op_type: "MaxPool" - attribute { - name: "dilations" - ints: 1 - type: INTS - } - attribute { - name: "kernel_shape" - ints: 1 - type: INTS - } - attribute { - name: "strides" - ints: 1 - type: INTS - } - } - node { - output: "onnx::Slice_5" - name: "Constant_5" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_6" - name: "Constant_6" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_7" - name: "Constant_7" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Slice_4" - input: "onnx::Slice_6" - input: "onnx::Slice_5" - input: "onnx::Slice_7" - output: "onnx::Sub_8" - name: "Slice_8" - op_type: "Slice" - } - node { - input: "onnx::Sub_2" - input: "onnx::Sub_8" - output: "9" - name: "Sub_9" - op_type: "Sub" - } - name: "main_graph" - input { - name: "onnx::MaxPool_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 20 - } - dim { - dim_value: 16 - } - dim { - dim_value: 50 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 20 - } - dim { - dim_value: 16 - } - dim { - dim_value: 24 - } - } - } - } - } - output { - name: "9" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_value: 20 - } - dim { - dim_value: 16 - } - dim { - dim_value: 24 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_mean.expect b/test/onnx/expect/TestOperators.test_mean.expect deleted file mode 100644 index 16a58b1d1f39c..0000000000000 --- a/test/onnx/expect/TestOperators.test_mean.expect +++ /dev/null @@ -1,52 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ReduceMean_0" - output: "1" - name: "ReduceMean_0" - op_type: "ReduceMean" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::ReduceMean_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_mean_dtype.expect b/test/onnx/expect/TestOperators.test_mean_dtype.expect deleted file mode 100644 index 0ad08db32da0f..0000000000000 --- a/test/onnx/expect/TestOperators.test_mean_dtype.expect +++ /dev/null @@ -1,63 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Cast_0" - output: "onnx::ReduceMean_1" - name: "Cast_0" - op_type: "Cast" - attribute { - name: "to" - i: 11 - type: INT - } - } - node { - input: "onnx::ReduceMean_1" - output: "2" - name: "ReduceMean_1" - op_type: "ReduceMean" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::Cast_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 11 - shape { - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_meshgrid.expect b/test/onnx/expect/TestOperators.test_meshgrid.expect deleted file mode 100644 index bcbe7acbe6ca7..0000000000000 --- a/test/onnx/expect/TestOperators.test_meshgrid.expect +++ /dev/null @@ -1,352 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Reshape_3" - name: "Constant_6" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\377" - } - type: TENSOR - } - } - node { - input: "onnx::Reshape_0" - input: "onnx::Reshape_3" - output: "onnx::Shape_4" - name: "Reshape_7" - op_type: "Reshape" - attribute { - name: "allowzero" - i: 0 - type: INT - } - } - node { - output: "onnx::Reshape_5" - name: "Constant_8" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\377" - } - type: TENSOR - } - } - node { - input: "onnx::Reshape_1" - input: "onnx::Reshape_5" - output: "onnx::Shape_6" - name: "Reshape_9" - op_type: "Reshape" - attribute { - name: "allowzero" - i: 0 - type: INT - } - } - node { - output: "onnx::Reshape_7" - name: "Constant_10" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\377" - } - type: TENSOR - } - } - node { - input: "onnx::Reshape_2" - input: "onnx::Reshape_7" - output: "onnx::Shape_8" - name: "Reshape_11" - op_type: "Reshape" - attribute { - name: "allowzero" - i: 0 - type: INT - } - } - node { - input: "onnx::Shape_4" - output: "onnx::Concat_9" - name: "Shape_12" - op_type: "Shape" - } - node { - input: "onnx::Shape_6" - output: "onnx::Concat_10" - name: "Shape_13" - op_type: "Shape" - } - node { - input: "onnx::Shape_8" - output: "onnx::Concat_11" - name: "Shape_14" - op_type: "Shape" - } - node { - input: "onnx::Concat_9" - input: "onnx::Concat_10" - input: "onnx::Concat_11" - output: "onnx::Expand_12" - name: "Concat_15" - op_type: "Concat" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - output: "onnx::Concat_13" - name: "Constant_16" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Concat_9" - input: "onnx::Concat_13" - input: "onnx::Concat_13" - output: "onnx::Reshape_14" - name: "Concat_17" - op_type: "Concat" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "onnx::Shape_4" - input: "onnx::Reshape_14" - output: "onnx::Expand_15" - name: "Reshape_18" - op_type: "Reshape" - attribute { - name: "allowzero" - i: 0 - type: INT - } - } - node { - input: "onnx::Expand_15" - input: "onnx::Expand_12" - output: "16" - name: "Expand_19" - op_type: "Expand" - } - node { - output: "onnx::Concat_17" - name: "Constant_20" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Concat_17" - input: "onnx::Concat_10" - input: "onnx::Concat_17" - output: "onnx::Reshape_18" - name: "Concat_21" - op_type: "Concat" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "onnx::Shape_6" - input: "onnx::Reshape_18" - output: "onnx::Expand_19" - name: "Reshape_22" - op_type: "Reshape" - attribute { - name: "allowzero" - i: 0 - type: INT - } - } - node { - input: "onnx::Expand_19" - input: "onnx::Expand_12" - output: "20" - name: "Expand_23" - op_type: "Expand" - } - node { - output: "onnx::Concat_21" - name: "Constant_24" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Concat_21" - input: "onnx::Concat_21" - input: "onnx::Concat_11" - output: "onnx::Reshape_22" - name: "Concat_25" - op_type: "Concat" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "onnx::Shape_8" - input: "onnx::Reshape_22" - output: "onnx::Expand_23" - name: "Reshape_26" - op_type: "Reshape" - attribute { - name: "allowzero" - i: 0 - type: INT - } - } - node { - input: "onnx::Expand_23" - input: "onnx::Expand_12" - output: "24" - name: "Expand_27" - op_type: "Expand" - } - name: "main_graph" - input { - name: "onnx::Reshape_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::Reshape_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "onnx::Reshape_2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 5 - } - } - } - } - } - output { - name: "16" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - dim { - dim_value: 5 - } - } - } - } - } - output { - name: "20" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - dim { - dim_value: 5 - } - } - } - } - } - output { - name: "24" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - dim { - dim_value: 5 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_meshgrid_indexing.expect b/test/onnx/expect/TestOperators.test_meshgrid_indexing.expect deleted file mode 100644 index 0198da3628373..0000000000000 --- a/test/onnx/expect/TestOperators.test_meshgrid_indexing.expect +++ /dev/null @@ -1,322 +0,0 @@ -ir_version: 4 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Reshape_3" - name: "Constant_6" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\377" - } - type: TENSOR - } - } - node { - input: "onnx::Reshape_1" - input: "onnx::Reshape_3" - output: "onnx::Shape_4" - name: "Reshape_7" - op_type: "Reshape" - } - node { - output: "onnx::Reshape_5" - name: "Constant_8" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\377" - } - type: TENSOR - } - } - node { - input: "onnx::Reshape_0" - input: "onnx::Reshape_5" - output: "onnx::Shape_6" - name: "Reshape_9" - op_type: "Reshape" - } - node { - output: "onnx::Reshape_7" - name: "Constant_10" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\377" - } - type: TENSOR - } - } - node { - input: "onnx::Reshape_2" - input: "onnx::Reshape_7" - output: "onnx::Shape_8" - name: "Reshape_11" - op_type: "Reshape" - } - node { - input: "onnx::Shape_4" - output: "onnx::Concat_9" - name: "Shape_12" - op_type: "Shape" - } - node { - input: "onnx::Shape_6" - output: "onnx::Concat_10" - name: "Shape_13" - op_type: "Shape" - } - node { - input: "onnx::Shape_8" - output: "onnx::Concat_11" - name: "Shape_14" - op_type: "Shape" - } - node { - input: "onnx::Concat_9" - input: "onnx::Concat_10" - input: "onnx::Concat_11" - output: "onnx::Expand_12" - name: "Concat_15" - op_type: "Concat" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - output: "onnx::Concat_13" - name: "Constant_16" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Concat_9" - input: "onnx::Concat_13" - input: "onnx::Concat_13" - output: "onnx::Reshape_14" - name: "Concat_17" - op_type: "Concat" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "onnx::Shape_4" - input: "onnx::Reshape_14" - output: "onnx::Expand_15" - name: "Reshape_18" - op_type: "Reshape" - } - node { - input: "onnx::Expand_15" - input: "onnx::Expand_12" - output: "16" - name: "Expand_19" - op_type: "Expand" - } - node { - output: "onnx::Concat_17" - name: "Constant_20" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Concat_17" - input: "onnx::Concat_10" - input: "onnx::Concat_17" - output: "onnx::Reshape_18" - name: "Concat_21" - op_type: "Concat" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "onnx::Shape_6" - input: "onnx::Reshape_18" - output: "onnx::Expand_19" - name: "Reshape_22" - op_type: "Reshape" - } - node { - input: "onnx::Expand_19" - input: "onnx::Expand_12" - output: "20" - name: "Expand_23" - op_type: "Expand" - } - node { - output: "onnx::Concat_21" - name: "Constant_24" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Concat_21" - input: "onnx::Concat_21" - input: "onnx::Concat_11" - output: "onnx::Reshape_22" - name: "Concat_25" - op_type: "Concat" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "onnx::Shape_8" - input: "onnx::Reshape_22" - output: "onnx::Expand_23" - name: "Reshape_26" - op_type: "Reshape" - } - node { - input: "onnx::Expand_23" - input: "onnx::Expand_12" - output: "24" - name: "Expand_27" - op_type: "Expand" - } - name: "main_graph" - input { - name: "onnx::Reshape_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::Reshape_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "onnx::Reshape_2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 5 - } - } - } - } - } - output { - name: "20" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 4 - } - dim { - dim_value: 3 - } - dim { - dim_value: 5 - } - } - } - } - } - output { - name: "16" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 4 - } - dim { - dim_value: 3 - } - dim { - dim_value: 5 - } - } - } - } - } - output { - name: "24" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 4 - } - dim { - dim_value: 3 - } - dim { - dim_value: 5 - } - } - } - } - } -} -opset_import { - version: 9 -} diff --git a/test/onnx/expect/TestOperators.test_min.expect b/test/onnx/expect/TestOperators.test_min.expect deleted file mode 100644 index bba38912dc5a5..0000000000000 --- a/test/onnx/expect/TestOperators.test_min.expect +++ /dev/null @@ -1,64 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Min_0" - input: "onnx::Min_1" - output: "2" - name: "Min_0" - op_type: "Min" - } - name: "main_graph" - input { - name: "onnx::Min_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "onnx::Min_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_mm.expect b/test/onnx/expect/TestOperators.test_mm.expect deleted file mode 100644 index c8a38c2514d62..0000000000000 --- a/test/onnx/expect/TestOperators.test_mm.expect +++ /dev/null @@ -1,74 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Gemm_0" - input: "onnx::Gemm_1" - output: "2" - name: "Gemm_0" - op_type: "Gemm" - attribute { - name: "alpha" - f: 1 - type: FLOAT - } - attribute { - name: "beta" - f: 0 - type: FLOAT - } - } - name: "main_graph" - input { - name: "onnx::Gemm_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::Gemm_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_mul_bool.expect b/test/onnx/expect/TestOperators.test_mul_bool.expect deleted file mode 100644 index 9f148d96eba88..0000000000000 --- a/test/onnx/expect/TestOperators.test_mul_bool.expect +++ /dev/null @@ -1,55 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::And_0" - input: "onnx::And_1" - output: "2" - name: "And_0" - op_type: "And" - } - name: "main_graph" - input { - name: "onnx::And_0" - type { - tensor_type { - elem_type: 9 - shape { - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "onnx::And_1" - type { - tensor_type { - elem_type: 9 - shape { - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 9 - shape { - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_mul_fp_bool.expect b/test/onnx/expect/TestOperators.test_mul_fp_bool.expect deleted file mode 100644 index d77b071d11a75..0000000000000 --- a/test/onnx/expect/TestOperators.test_mul_fp_bool.expect +++ /dev/null @@ -1,66 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Cast_1" - output: "onnx::Mul_2" - name: "Cast_0" - op_type: "Cast" - attribute { - name: "to" - i: 1 - type: INT - } - } - node { - input: "onnx::Mul_0" - input: "onnx::Mul_2" - output: "3" - name: "Mul_1" - op_type: "Mul" - } - name: "main_graph" - input { - name: "onnx::Mul_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::Cast_1" - type { - tensor_type { - elem_type: 9 - shape { - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "3" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_narrow.expect b/test/onnx/expect/TestOperators.test_narrow.expect deleted file mode 100644 index 9d7da1a3478b2..0000000000000 --- a/test/onnx/expect/TestOperators.test_narrow.expect +++ /dev/null @@ -1,92 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Slice_13" - name: "Constant_3" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_14" - name: "Constant_4" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_15" - name: "Constant_5" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Slice_0" - input: "onnx::Slice_14" - input: "onnx::Slice_15" - input: "onnx::Slice_13" - output: "11" - name: "Slice_6" - op_type: "Slice" - } - name: "main_graph" - input { - name: "onnx::Slice_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "11" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_ne.expect b/test/onnx/expect/TestOperators.test_ne.expect deleted file mode 100644 index 09ff848f9354e..0000000000000 --- a/test/onnx/expect/TestOperators.test_ne.expect +++ /dev/null @@ -1,82 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Equal_0" - input: "onnx::Equal_1" - output: "onnx::Not_2" - name: "Equal_0" - op_type: "Equal" - } - node { - input: "onnx::Not_2" - output: "3" - name: "Not_1" - op_type: "Not" - } - name: "main_graph" - input { - name: "onnx::Equal_0" - type { - tensor_type { - elem_type: 6 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 1 - } - } - } - } - } - input { - name: "onnx::Equal_1" - type { - tensor_type { - elem_type: 6 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "3" - type { - tensor_type { - elem_type: 9 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_non_float_params.expect b/test/onnx/expect/TestOperators.test_non_float_params.expect deleted file mode 100644 index cc3db6082c00b..0000000000000 --- a/test/onnx/expect/TestOperators.test_non_float_params.expect +++ /dev/null @@ -1,76 +0,0 @@ -ir_version: 3 -producer_name: "pytorch" -producer_version: "0.3" -graph { - node { - input: "0" - input: "1" - output: "2" - op_type: "Add" - } - node { - input: "0" - input: "2" - output: "3" - op_type: "Mul" - } - name: "torch-jit-export" - initializer { - dims: 2 - dims: 2 - data_type: INT64 - name: "1" - raw_data: "\001\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\003\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000" - } - input { - name: "0" - type { - tensor_type { - elem_type: INT64 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "1" - type { - tensor_type { - elem_type: INT64 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "3" - type { - tensor_type { - elem_type: INT64 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } -} -opset_import { - version: 6 -} diff --git a/test/onnx/expect/TestOperators.test_nonzero.expect b/test/onnx/expect/TestOperators.test_nonzero.expect deleted file mode 100644 index 4a9631bacc740..0000000000000 --- a/test/onnx/expect/TestOperators.test_nonzero.expect +++ /dev/null @@ -1,62 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::NonZero_0" - output: "onnx::Transpose_1" - name: "NonZero_0" - op_type: "NonZero" - } - node { - input: "onnx::Transpose_1" - output: "2" - name: "Transpose_1" - op_type: "Transpose" - attribute { - name: "perm" - ints: 1 - ints: 0 - type: INTS - } - } - name: "main_graph" - input { - name: "onnx::NonZero_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_param: "Transpose2_dim_0" - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_norm_p1.expect b/test/onnx/expect/TestOperators.test_norm_p1.expect deleted file mode 100644 index a6c3f5e358980..0000000000000 --- a/test/onnx/expect/TestOperators.test_norm_p1.expect +++ /dev/null @@ -1,66 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ReduceL1_0" - output: "1" - name: "ReduceL1_0" - op_type: "ReduceL1" - attribute { - name: "axes" - ints: 2 - type: INTS - } - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::ReduceL1_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_norm_p2.expect b/test/onnx/expect/TestOperators.test_norm_p2.expect deleted file mode 100644 index 8f7dca27b3373..0000000000000 --- a/test/onnx/expect/TestOperators.test_norm_p2.expect +++ /dev/null @@ -1,66 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ReduceL2_0" - output: "1" - name: "ReduceL2_0" - op_type: "ReduceL2" - attribute { - name: "axes" - ints: 2 - type: INTS - } - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::ReduceL2_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_ones_like.expect b/test/onnx/expect/TestOperators.test_ones_like.expect deleted file mode 100644 index d9ce730cffbed..0000000000000 --- a/test/onnx/expect/TestOperators.test_ones_like.expect +++ /dev/null @@ -1,40 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 6 - dims: 10 - data_type: 1 - raw_data: "\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?\000\000\200?" - } - type: TENSOR - } - } - name: "main_graph" - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 6 - } - dim { - dim_value: 10 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_pad.expect b/test/onnx/expect/TestOperators.test_pad.expect deleted file mode 100644 index 862e80061d2e7..0000000000000 --- a/test/onnx/expect/TestOperators.test_pad.expect +++ /dev/null @@ -1,261 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::ConstantOfShape_27" - name: "Constant_8" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\004\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Concat_28" - name: "Constant_9" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 4 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000\003\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::ConstantOfShape_27" - output: "onnx::Concat_10" - name: "ConstantOfShape_10" - op_type: "ConstantOfShape" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Concat_28" - input: "onnx::Concat_10" - output: "onnx::Reshape_11" - name: "Concat_11" - op_type: "Concat" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - output: "onnx::Reshape_12" - name: "Constant_12" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 2 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\377\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Reshape_11" - input: "onnx::Reshape_12" - output: "onnx::Slice_13" - name: "Reshape_13" - op_type: "Reshape" - attribute { - name: "allowzero" - i: 0 - type: INT - } - } - node { - output: "onnx::Slice_14" - name: "Constant_14" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_15" - name: "Constant_15" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\377" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_16" - name: "Constant_16" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\200" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_17" - name: "Constant_17" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\377" - } - type: TENSOR - } - } - node { - input: "onnx::Slice_13" - input: "onnx::Slice_15" - input: "onnx::Slice_16" - input: "onnx::Slice_14" - input: "onnx::Slice_17" - output: "onnx::Transpose_18" - name: "Slice_18" - op_type: "Slice" - } - node { - input: "onnx::Transpose_18" - output: "onnx::Reshape_19" - name: "Transpose_19" - op_type: "Transpose" - attribute { - name: "perm" - ints: 1 - ints: 0 - type: INTS - } - } - node { - output: "onnx::Reshape_20" - name: "Constant_20" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\377" - } - type: TENSOR - } - } - node { - input: "onnx::Reshape_19" - input: "onnx::Reshape_20" - output: "onnx::Cast_21" - name: "Reshape_21" - op_type: "Reshape" - attribute { - name: "allowzero" - i: 0 - type: INT - } - } - node { - input: "onnx::Cast_21" - output: "onnx::Pad_22" - name: "Cast_22" - op_type: "Cast" - attribute { - name: "to" - i: 7 - type: INT - } - } - node { - input: "input" - input: "onnx::Pad_22" - output: "23" - name: "Pad_23" - op_type: "Pad" - attribute { - name: "mode" - s: "reflect" - type: STRING - } - } - name: "main_graph" - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "23" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_param: "Pad23_dim_0" - } - dim { - dim_param: "Pad23_dim_1" - } - dim { - dim_param: "Pad23_dim_2" - } - dim { - dim_param: "Pad23_dim_3" - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_params.expect b/test/onnx/expect/TestOperators.test_params.expect deleted file mode 100644 index 297f4efc964b2..0000000000000 --- a/test/onnx/expect/TestOperators.test_params.expect +++ /dev/null @@ -1,96 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Add_0" - input: "params.0" - output: "onnx::Mul_2" - name: "Add_0" - op_type: "Add" - } - node { - input: "onnx::Add_0" - input: "onnx::Mul_2" - output: "onnx::Tanh_3" - name: "Mul_1" - op_type: "Mul" - } - node { - input: "onnx::Tanh_3" - output: "onnx::Sigmoid_4" - name: "Tanh_2" - op_type: "Tanh" - } - node { - input: "onnx::Sigmoid_4" - output: "onnx::Neg_5" - name: "Sigmoid_3" - op_type: "Sigmoid" - } - node { - input: "onnx::Neg_5" - output: "6" - name: "Neg_4" - op_type: "Neg" - } - name: "main_graph" - initializer { - dims: 2 - dims: 2 - data_type: 1 - name: "params.0" - raw_data: "\000\000\200?\000\000\000@\000\000@@\000\000\200@" - } - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "params.0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "6" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_params_onnx_irv4.expect b/test/onnx/expect/TestOperators.test_params_onnx_irv4.expect deleted file mode 100644 index f2edad78847ee..0000000000000 --- a/test/onnx/expect/TestOperators.test_params_onnx_irv4.expect +++ /dev/null @@ -1,80 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Add_0" - input: "params.0" - output: "onnx::Mul_2" - name: "Add_0" - op_type: "Add" - } - node { - input: "onnx::Add_0" - input: "onnx::Mul_2" - output: "onnx::Tanh_3" - name: "Mul_1" - op_type: "Mul" - } - node { - input: "onnx::Tanh_3" - output: "onnx::Sigmoid_4" - name: "Tanh_2" - op_type: "Tanh" - } - node { - input: "onnx::Sigmoid_4" - output: "onnx::Neg_5" - name: "Sigmoid_3" - op_type: "Sigmoid" - } - node { - input: "onnx::Neg_5" - output: "6" - name: "Neg_4" - op_type: "Neg" - } - name: "main_graph" - initializer { - dims: 2 - dims: 2 - data_type: 1 - name: "params.0" - raw_data: "\000\000\200?\000\000\000@\000\000@@\000\000\200@" - } - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "6" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_permute2.expect b/test/onnx/expect/TestOperators.test_permute2.expect deleted file mode 100644 index 061253829b910..0000000000000 --- a/test/onnx/expect/TestOperators.test_permute2.expect +++ /dev/null @@ -1,81 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Transpose_0" - output: "1" - name: "Transpose_0" - op_type: "Transpose" - attribute { - name: "perm" - ints: 0 - ints: 1 - ints: 4 - ints: 2 - ints: 5 - ints: 3 - type: INTS - } - } - name: "main_graph" - input { - name: "onnx::Transpose_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_pixel_shuffle.expect b/test/onnx/expect/TestOperators.test_pixel_shuffle.expect deleted file mode 100644 index bdc69607c33d2..0000000000000 --- a/test/onnx/expect/TestOperators.test_pixel_shuffle.expect +++ /dev/null @@ -1,69 +0,0 @@ -ir_version: 6 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::DepthToSpace_0" - output: "1" - name: "DepthToSpace_0" - op_type: "DepthToSpace" - attribute { - name: "blocksize" - i: 2 - type: INT - } - attribute { - name: "mode" - s: "CRD" - type: STRING - } - } - name: "main_graph" - input { - name: "onnx::DepthToSpace_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 8 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - dim { - dim_value: 6 - } - dim { - dim_value: 8 - } - } - } - } - } -} -opset_import { - version: 11 -} diff --git a/test/onnx/expect/TestOperators.test_pow.expect b/test/onnx/expect/TestOperators.test_pow.expect deleted file mode 100644 index 2a86f888becea..0000000000000 --- a/test/onnx/expect/TestOperators.test_pow.expect +++ /dev/null @@ -1,82 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Pow_0" - input: "onnx::Pow_1" - output: "2" - name: "Pow_0" - op_type: "Pow" - } - name: "main_graph" - input { - name: "onnx::Pow_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "onnx::Pow_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_prelu.expect b/test/onnx/expect/TestOperators.test_prelu.expect deleted file mode 100644 index f75e59d75f113..0000000000000 --- a/test/onnx/expect/TestOperators.test_prelu.expect +++ /dev/null @@ -1,87 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::PRelu_0" - input: "onnx::PRelu_5" - output: "4" - name: "PRelu_0" - op_type: "PRelu" - } - name: "main_graph" - initializer { - dims: 2 - dims: 1 - dims: 1 - data_type: 1 - name: "onnx::PRelu_5" - raw_data: "\000\000\200>\000\000\200>" - } - input { - name: "onnx::PRelu_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "onnx::PRelu_5" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - } - } - } - } - output { - name: "4" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_prod.expect b/test/onnx/expect/TestOperators.test_prod.expect deleted file mode 100644 index 1b1bff9a9f919..0000000000000 --- a/test/onnx/expect/TestOperators.test_prod.expect +++ /dev/null @@ -1,52 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ReduceProd_0" - output: "1" - name: "ReduceProd_0" - op_type: "ReduceProd" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::ReduceProd_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_prod_dtype.expect b/test/onnx/expect/TestOperators.test_prod_dtype.expect deleted file mode 100644 index a2dd76152b5b5..0000000000000 --- a/test/onnx/expect/TestOperators.test_prod_dtype.expect +++ /dev/null @@ -1,63 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Cast_0" - output: "onnx::ReduceProd_1" - name: "Cast_0" - op_type: "Cast" - attribute { - name: "to" - i: 11 - type: INT - } - } - node { - input: "onnx::ReduceProd_1" - output: "2" - name: "ReduceProd_1" - op_type: "ReduceProd" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::Cast_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 11 - shape { - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_rand.expect b/test/onnx/expect/TestOperators.test_rand.expect deleted file mode 100644 index 32f01974f1c77..0000000000000 --- a/test/onnx/expect/TestOperators.test_rand.expect +++ /dev/null @@ -1,78 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Add_1" - name: "RandomUniform_0" - op_type: "RandomUniform" - attribute { - name: "dtype" - i: 1 - type: INT - } - attribute { - name: "shape" - ints: 1 - ints: 2 - ints: 3 - ints: 4 - type: INTS - } - } - node { - input: "onnx::Add_1" - input: "onnx::Add_0" - output: "2" - name: "Add_1" - op_type: "Add" - } - name: "main_graph" - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_randn.expect b/test/onnx/expect/TestOperators.test_randn.expect deleted file mode 100644 index 966cc896425fc..0000000000000 --- a/test/onnx/expect/TestOperators.test_randn.expect +++ /dev/null @@ -1,78 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Add_1" - name: "RandomNormal_0" - op_type: "RandomNormal" - attribute { - name: "dtype" - i: 1 - type: INT - } - attribute { - name: "shape" - ints: 1 - ints: 2 - ints: 3 - ints: 4 - type: INTS - } - } - node { - input: "onnx::Add_1" - input: "onnx::Add_0" - output: "2" - name: "Add_1" - op_type: "Add" - } - name: "main_graph" - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_reduce_sum_negative_indices.expect b/test/onnx/expect/TestOperators.test_reduce_sum_negative_indices.expect deleted file mode 100644 index e9e966462ded5..0000000000000 --- a/test/onnx/expect/TestOperators.test_reduce_sum_negative_indices.expect +++ /dev/null @@ -1,64 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::ReduceSum_1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\377" - } - type: TENSOR - } - } - node { - input: "onnx::ReduceSum_0" - input: "onnx::ReduceSum_1" - output: "2" - name: "ReduceSum_2" - op_type: "ReduceSum" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::ReduceSum_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_reduced_mean.expect b/test/onnx/expect/TestOperators.test_reduced_mean.expect deleted file mode 100644 index 9ce934ea0971c..0000000000000 --- a/test/onnx/expect/TestOperators.test_reduced_mean.expect +++ /dev/null @@ -1,66 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ReduceMean_0" - output: "1" - name: "ReduceMean_0" - op_type: "ReduceMean" - attribute { - name: "axes" - ints: 2 - type: INTS - } - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::ReduceMean_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_reduced_mean_dtype.expect b/test/onnx/expect/TestOperators.test_reduced_mean_dtype.expect deleted file mode 100644 index e5f7852424668..0000000000000 --- a/test/onnx/expect/TestOperators.test_reduced_mean_dtype.expect +++ /dev/null @@ -1,77 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Cast_0" - output: "onnx::ReduceMean_1" - name: "Cast_0" - op_type: "Cast" - attribute { - name: "to" - i: 11 - type: INT - } - } - node { - input: "onnx::ReduceMean_1" - output: "2" - name: "ReduceMean_1" - op_type: "ReduceMean" - attribute { - name: "axes" - ints: 0 - type: INTS - } - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::Cast_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_reduced_mean_keepdim.expect b/test/onnx/expect/TestOperators.test_reduced_mean_keepdim.expect deleted file mode 100644 index 027fd0c5365d3..0000000000000 --- a/test/onnx/expect/TestOperators.test_reduced_mean_keepdim.expect +++ /dev/null @@ -1,70 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ReduceMean_0" - output: "1" - name: "ReduceMean_0" - op_type: "ReduceMean" - attribute { - name: "axes" - ints: 2 - ints: 3 - type: INTS - } - attribute { - name: "keepdims" - i: 1 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::ReduceMean_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_reduced_prod.expect b/test/onnx/expect/TestOperators.test_reduced_prod.expect deleted file mode 100644 index 9510c7f4641ad..0000000000000 --- a/test/onnx/expect/TestOperators.test_reduced_prod.expect +++ /dev/null @@ -1,66 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ReduceProd_0" - output: "1" - name: "ReduceProd_0" - op_type: "ReduceProd" - attribute { - name: "axes" - ints: 2 - type: INTS - } - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::ReduceProd_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_reduced_prod_dtype.expect b/test/onnx/expect/TestOperators.test_reduced_prod_dtype.expect deleted file mode 100644 index f52acf54d11c6..0000000000000 --- a/test/onnx/expect/TestOperators.test_reduced_prod_dtype.expect +++ /dev/null @@ -1,77 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Cast_0" - output: "onnx::ReduceProd_1" - name: "Cast_0" - op_type: "Cast" - attribute { - name: "to" - i: 11 - type: INT - } - } - node { - input: "onnx::ReduceProd_1" - output: "2" - name: "ReduceProd_1" - op_type: "ReduceProd" - attribute { - name: "axes" - ints: 0 - type: INTS - } - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::Cast_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_reduced_prod_keepdim.expect b/test/onnx/expect/TestOperators.test_reduced_prod_keepdim.expect deleted file mode 100644 index 84acdefb26e17..0000000000000 --- a/test/onnx/expect/TestOperators.test_reduced_prod_keepdim.expect +++ /dev/null @@ -1,69 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ReduceProd_0" - output: "1" - name: "ReduceProd_0" - op_type: "ReduceProd" - attribute { - name: "axes" - ints: 2 - type: INTS - } - attribute { - name: "keepdims" - i: 1 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::ReduceProd_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 1 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_reduced_sum.expect b/test/onnx/expect/TestOperators.test_reduced_sum.expect deleted file mode 100644 index b95be5dba428f..0000000000000 --- a/test/onnx/expect/TestOperators.test_reduced_sum.expect +++ /dev/null @@ -1,73 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::ReduceSum_1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 2 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::ReduceSum_0" - input: "onnx::ReduceSum_1" - output: "2" - name: "ReduceSum_2" - op_type: "ReduceSum" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::ReduceSum_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_reduced_sum_dtype.expect b/test/onnx/expect/TestOperators.test_reduced_sum_dtype.expect deleted file mode 100644 index 94b60bd037587..0000000000000 --- a/test/onnx/expect/TestOperators.test_reduced_sum_dtype.expect +++ /dev/null @@ -1,87 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::ReduceSum_1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Cast_0" - output: "onnx::ReduceSum_2" - name: "Cast_2" - op_type: "Cast" - attribute { - name: "to" - i: 11 - type: INT - } - } - node { - input: "onnx::ReduceSum_2" - input: "onnx::ReduceSum_1" - output: "3" - name: "ReduceSum_3" - op_type: "ReduceSum" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::Cast_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "3" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_reduced_sum_keepdim.expect b/test/onnx/expect/TestOperators.test_reduced_sum_keepdim.expect deleted file mode 100644 index 33f1ee12a9269..0000000000000 --- a/test/onnx/expect/TestOperators.test_reduced_sum_keepdim.expect +++ /dev/null @@ -1,79 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::ReduceSum_1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::ReduceSum_0" - input: "onnx::ReduceSum_1" - output: "2" - name: "ReduceSum_2" - op_type: "ReduceSum" - attribute { - name: "keepdims" - i: 1 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::ReduceSum_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 1 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_reducemax.expect b/test/onnx/expect/TestOperators.test_reducemax.expect deleted file mode 100644 index 82b480dcae7ee..0000000000000 --- a/test/onnx/expect/TestOperators.test_reducemax.expect +++ /dev/null @@ -1,52 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ReduceMax_0" - output: "1" - name: "ReduceMax_0" - op_type: "ReduceMax" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::ReduceMax_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_reducemin.expect b/test/onnx/expect/TestOperators.test_reducemin.expect deleted file mode 100644 index d2dec20087781..0000000000000 --- a/test/onnx/expect/TestOperators.test_reducemin.expect +++ /dev/null @@ -1,52 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ReduceMin_0" - output: "1" - name: "ReduceMin_0" - op_type: "ReduceMin" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::ReduceMin_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_remainder.expect b/test/onnx/expect/TestOperators.test_remainder.expect deleted file mode 100644 index 6dbdf6bc1d7bd..0000000000000 --- a/test/onnx/expect/TestOperators.test_remainder.expect +++ /dev/null @@ -1,93 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Div_0" - input: "onnx::Div_1" - output: "onnx::Floor_2" - name: "Div_0" - op_type: "Div" - } - node { - input: "onnx::Floor_2" - output: "onnx::Mul_3" - name: "Floor_1" - op_type: "Floor" - } - node { - input: "onnx::Mul_3" - input: "onnx::Div_1" - output: "onnx::Sub_4" - name: "Mul_2" - op_type: "Mul" - } - node { - input: "onnx::Div_0" - input: "onnx::Sub_4" - output: "5" - name: "Sub_3" - op_type: "Sub" - } - name: "main_graph" - input { - name: "onnx::Div_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "onnx::Div_1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 1 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "5" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_repeat.expect b/test/onnx/expect/TestOperators.test_repeat.expect deleted file mode 100644 index 87abb4d13d78b..0000000000000 --- a/test/onnx/expect/TestOperators.test_repeat.expect +++ /dev/null @@ -1,110 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Tile_1" - name: "Constant_2" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 4 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\003\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::ConstantOfShape_6" - name: "Constant_3" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\004\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::ConstantOfShape_6" - output: "onnx::Expand_3" - name: "ConstantOfShape_4" - op_type: "ConstantOfShape" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Expand_0" - input: "onnx::Expand_3" - output: "onnx::Tile_4" - name: "Expand_5" - op_type: "Expand" - } - node { - input: "onnx::Tile_4" - input: "onnx::Tile_1" - output: "5" - name: "Tile_6" - op_type: "Tile" - } - name: "main_graph" - input { - name: "onnx::Expand_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "5" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 4 - } - dim { - dim_value: 9 - } - dim { - dim_value: 16 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_repeat_dim_overflow.expect b/test/onnx/expect/TestOperators.test_repeat_dim_overflow.expect deleted file mode 100644 index 58866bfcfe289..0000000000000 --- a/test/onnx/expect/TestOperators.test_repeat_dim_overflow.expect +++ /dev/null @@ -1,104 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Tile_1" - name: "Constant_2" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 4 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\003\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::ConstantOfShape_6" - name: "Constant_3" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\004\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::ConstantOfShape_6" - output: "onnx::Expand_3" - name: "ConstantOfShape_4" - op_type: "ConstantOfShape" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Expand_0" - input: "onnx::Expand_3" - output: "onnx::Tile_4" - name: "Expand_5" - op_type: "Expand" - } - node { - input: "onnx::Tile_4" - input: "onnx::Tile_1" - output: "5" - name: "Tile_6" - op_type: "Tile" - } - name: "main_graph" - input { - name: "onnx::Expand_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "5" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 8 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_retain_param_name_disabled.expect b/test/onnx/expect/TestOperators.test_retain_param_name_disabled.expect deleted file mode 100644 index 1199478adab22..0000000000000 --- a/test/onnx/expect/TestOperators.test_retain_param_name_disabled.expect +++ /dev/null @@ -1,101 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "0" - input: "7" - output: "4" - name: "MatMul_0" - op_type: "MatMul" - } - node { - input: "4" - input: "8" - output: "6" - name: "MatMul_1" - op_type: "MatMul" - } - name: "torch-jit-export" - initializer { - dims: 4 - dims: 5 - data_type: 1 - name: "7" - raw_data: "\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@\000\000\000@" - } - initializer { - dims: 5 - dims: 6 - data_type: 1 - name: "8" - raw_data: "\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@\000\000@@" - } - input { - name: "0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - input { - name: "7" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 4 - } - dim { - dim_value: 5 - } - } - } - } - } - input { - name: "8" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 5 - } - dim { - dim_value: 6 - } - } - } - } - } - output { - name: "6" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 6 - } - } - } - } - } -} -opset_import { - version: 9 -} diff --git a/test/onnx/expect/TestOperators.test_round.expect b/test/onnx/expect/TestOperators.test_round.expect deleted file mode 100644 index 11a009b4d9537..0000000000000 --- a/test/onnx/expect/TestOperators.test_round.expect +++ /dev/null @@ -1,41 +0,0 @@ -ir_version: 6 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Round_0" - output: "1" - name: "Round_0" - op_type: "Round" - } - name: "main_graph" - input { - name: "onnx::Round_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 11 -} diff --git a/test/onnx/expect/TestOperators.test_rrelu.expect b/test/onnx/expect/TestOperators.test_rrelu.expect deleted file mode 100644 index 31eb4cd593e62..0000000000000 --- a/test/onnx/expect/TestOperators.test_rrelu.expect +++ /dev/null @@ -1,64 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - output: "1" - name: "LeakyRelu_0" - op_type: "LeakyRelu" - attribute { - name: "alpha" - f: 0.229166672 - type: FLOAT - } - } - name: "main_graph" - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_rsqrt.expect b/test/onnx/expect/TestOperators.test_rsqrt.expect deleted file mode 100644 index 370d2a109705e..0000000000000 --- a/test/onnx/expect/TestOperators.test_rsqrt.expect +++ /dev/null @@ -1,67 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Sqrt_0" - output: "onnx::Div_1" - name: "Sqrt_1" - op_type: "Sqrt" - } - node { - output: "onnx::Div_2" - name: "Constant_2" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\200?" - } - type: TENSOR - } - } - node { - input: "onnx::Div_2" - input: "onnx::Div_1" - output: "3" - name: "Div_3" - op_type: "Div" - } - name: "main_graph" - input { - name: "onnx::Sqrt_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "3" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_rsub.expect b/test/onnx/expect/TestOperators.test_rsub.expect deleted file mode 100644 index 5a5b8ab0db13d..0000000000000 --- a/test/onnx/expect/TestOperators.test_rsub.expect +++ /dev/null @@ -1,61 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Sub_1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 11 - raw_data: "\000\000\000\000\000\000\360?" - } - type: TENSOR - } - } - node { - input: "onnx::Sub_1" - input: "onnx::Sub_0" - output: "2" - name: "Sub_2" - op_type: "Sub" - } - name: "main_graph" - input { - name: "onnx::Sub_0" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 11 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_scatter_add.expect b/test/onnx/expect/TestOperators.test_scatter_add.expect deleted file mode 100644 index 690de7fd546c2..0000000000000 --- a/test/onnx/expect/TestOperators.test_scatter_add.expect +++ /dev/null @@ -1,91 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ScatterElements_0" - input: "onnx::ScatterElements_1" - input: "onnx::ScatterElements_2" - output: "3" - name: "ScatterElements_0" - op_type: "ScatterElements" - attribute { - name: "axis" - i: 1 - type: INT - } - attribute { - name: "reduction" - s: "add" - type: STRING - } - } - name: "main_graph" - input { - name: "onnx::ScatterElements_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::ScatterElements_1" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "onnx::ScatterElements_2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "3" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_scatter_add_opset11.expect b/test/onnx/expect/TestOperators.test_scatter_add_opset11.expect deleted file mode 100644 index 45fd285315bfe..0000000000000 --- a/test/onnx/expect/TestOperators.test_scatter_add_opset11.expect +++ /dev/null @@ -1,108 +0,0 @@ -ir_version: 6 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::ScatterElements_3" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 3 - dims: 3 - data_type: 1 - raw_data: "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::ScatterElements_3" - input: "onnx::ScatterElements_1" - input: "onnx::ScatterElements_2" - output: "onnx::Add_4" - name: "ScatterElements_2" - op_type: "ScatterElements" - attribute { - name: "axis" - i: 1 - type: INT - } - } - node { - input: "onnx::Add_0" - input: "onnx::Add_4" - output: "5" - name: "Add_3" - op_type: "Add" - } - name: "main_graph" - input { - name: "onnx::Add_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::ScatterElements_1" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "onnx::ScatterElements_2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "5" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 11 -} diff --git a/test/onnx/expect/TestOperators.test_scatter_add_opset16.expect b/test/onnx/expect/TestOperators.test_scatter_add_opset16.expect deleted file mode 100644 index b7416301a450b..0000000000000 --- a/test/onnx/expect/TestOperators.test_scatter_add_opset16.expect +++ /dev/null @@ -1,91 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ScatterElements_0" - input: "onnx::ScatterElements_1" - input: "onnx::ScatterElements_2" - output: "3" - name: "ScatterElements_0" - op_type: "ScatterElements" - attribute { - name: "axis" - i: 1 - type: INT - } - attribute { - name: "reduction" - s: "add" - type: STRING - } - } - name: "main_graph" - input { - name: "onnx::ScatterElements_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 3 - } - } - } - } - } - input { - name: "onnx::ScatterElements_1" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "onnx::ScatterElements_2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "3" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 16 -} diff --git a/test/onnx/expect/TestOperators.test_selu.expect b/test/onnx/expect/TestOperators.test_selu.expect deleted file mode 100644 index ed22c41c7d72d..0000000000000 --- a/test/onnx/expect/TestOperators.test_selu.expect +++ /dev/null @@ -1,59 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - output: "1" - name: "Selu_0" - op_type: "Selu" - } - name: "main_graph" - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_shape_value_map.expect b/test/onnx/expect/TestOperators.test_shape_value_map.expect deleted file mode 100644 index 2da896c56211a..0000000000000 --- a/test/onnx/expect/TestOperators.test_shape_value_map.expect +++ /dev/null @@ -1,251 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "x" - output: "onnx::Gather_1" - name: "Shape_7" - op_type: "Shape" - } - node { - output: "onnx::Gather_2" - name: "Constant_8" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Gather_1" - input: "onnx::Gather_2" - output: "onnx::Unsqueeze_3" - name: "Gather_9" - op_type: "Gather" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - output: "onnx::Unsqueeze_7" - name: "Constant_10" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Unsqueeze_3" - input: "onnx::Unsqueeze_7" - output: "onnx::Concat_8" - name: "Unsqueeze_11" - op_type: "Unsqueeze" - } - node { - output: "onnx::Concat_25" - name: "Constant_12" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Concat_26" - name: "Constant_13" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Concat_27" - name: "Constant_14" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\377" - } - type: TENSOR - } - } - node { - input: "onnx::Concat_8" - input: "onnx::Concat_25" - input: "onnx::Concat_26" - input: "onnx::Concat_27" - output: "onnx::Reshape_15" - name: "Concat_15" - op_type: "Concat" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "x" - input: "onnx::Reshape_15" - output: "onnx::Transpose_16" - name: "Reshape_16" - op_type: "Reshape" - attribute { - name: "allowzero" - i: 0 - type: INT - } - } - node { - input: "onnx::Transpose_16" - output: "x.1" - name: "Transpose_17" - op_type: "Transpose" - attribute { - name: "perm" - ints: 0 - ints: 2 - ints: 1 - ints: 3 - type: INTS - } - } - node { - input: "x.1" - output: "onnx::Reshape_18" - name: "Softmax_18" - op_type: "Softmax" - attribute { - name: "axis" - i: 1 - type: INT - } - } - node { - output: "onnx::Unsqueeze_19" - name: "Constant_19" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Unsqueeze_3" - input: "onnx::Unsqueeze_19" - output: "onnx::Concat_20" - name: "Unsqueeze_20" - op_type: "Unsqueeze" - } - node { - output: "onnx::Concat_28" - name: "Constant_21" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\377" - } - type: TENSOR - } - } - node { - input: "onnx::Concat_20" - input: "onnx::Concat_28" - output: "onnx::Reshape_23" - name: "Concat_22" - op_type: "Concat" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "onnx::Reshape_18" - input: "onnx::Reshape_23" - output: "24" - name: "Reshape_23" - op_type: "Reshape" - attribute { - name: "allowzero" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "x" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_param: "x_dim_0" - } - dim { - dim_value: 1 - } - dim { - dim_value: 128 - } - dim { - dim_value: 1 - } - } - } - } - } - output { - name: "24" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_param: "x_dim_0" - } - dim { - dim_value: 128 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_sign.expect b/test/onnx/expect/TestOperators.test_sign.expect deleted file mode 100644 index ae8e74f6dffd3..0000000000000 --- a/test/onnx/expect/TestOperators.test_sign.expect +++ /dev/null @@ -1,47 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Sign_0" - output: "1" - name: "Sign_0" - op_type: "Sign" - } - name: "main_graph" - input { - name: "onnx::Sign_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_sin.expect b/test/onnx/expect/TestOperators.test_sin.expect deleted file mode 100644 index e0d4ad0ad9dd1..0000000000000 --- a/test/onnx/expect/TestOperators.test_sin.expect +++ /dev/null @@ -1,47 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Sin_0" - output: "1" - name: "Sin_0" - op_type: "Sin" - } - name: "main_graph" - input { - name: "onnx::Sin_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_slice.expect b/test/onnx/expect/TestOperators.test_slice.expect deleted file mode 100644 index 36cf35da9068e..0000000000000 --- a/test/onnx/expect/TestOperators.test_slice.expect +++ /dev/null @@ -1,107 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Slice_12" - name: "Constant_4" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_13" - name: "Constant_5" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_14" - name: "Constant_6" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_15" - name: "Constant_7" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Slice_0" - input: "onnx::Slice_13" - input: "onnx::Slice_14" - input: "onnx::Slice_12" - input: "onnx::Slice_15" - output: "11" - name: "Slice_8" - op_type: "Slice" - } - name: "main_graph" - input { - name: "onnx::Slice_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "11" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 1 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_slice_dynamic.expect b/test/onnx/expect/TestOperators.test_slice_dynamic.expect deleted file mode 100644 index 8cd017a71b689..0000000000000 --- a/test/onnx/expect/TestOperators.test_slice_dynamic.expect +++ /dev/null @@ -1,129 +0,0 @@ -ir_version: 5 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Slice_12" - name: "Constant_5" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_13" - name: "Constant_6" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\003\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_14" - name: "Constant_7" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\377\377\377\377\377\377\377\177" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_15" - name: "Constant_8" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Slice_0" - input: "onnx::Slice_13" - input: "onnx::Slice_14" - input: "onnx::Slice_12" - input: "onnx::Slice_15" - output: "onnx::Gather_9" - name: "Slice_9" - op_type: "Slice" - } - node { - output: "onnx::Gather_10" - name: "Constant_10" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Gather_9" - input: "onnx::Gather_10" - output: "11" - name: "Gather_11" - op_type: "Gather" - attribute { - name: "axis" - i: 1 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::Slice_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "11" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 0 - } - } - } - } - } -} -opset_import { - version: 10 -} diff --git a/test/onnx/expect/TestOperators.test_softmaxcrossentropy.expect b/test/onnx/expect/TestOperators.test_softmaxcrossentropy.expect deleted file mode 100644 index 3d0583dac780a..0000000000000 --- a/test/onnx/expect/TestOperators.test_softmaxcrossentropy.expect +++ /dev/null @@ -1,65 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - input: "target" - output: "2" - name: "SoftmaxCrossEntropyLoss_0" - op_type: "SoftmaxCrossEntropyLoss" - attribute { - name: "ignore_index" - i: -100 - type: INT - } - attribute { - name: "reduction" - s: "mean" - type: STRING - } - } - name: "main_graph" - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 5 - } - } - } - } - } - input { - name: "target" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 12 -} diff --git a/test/onnx/expect/TestOperators.test_softmaxcrossentropy_3d.expect b/test/onnx/expect/TestOperators.test_softmaxcrossentropy_3d.expect deleted file mode 100644 index b9a2f5a561e41..0000000000000 --- a/test/onnx/expect/TestOperators.test_softmaxcrossentropy_3d.expect +++ /dev/null @@ -1,71 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - input: "target" - output: "2" - name: "SoftmaxCrossEntropyLoss_0" - op_type: "SoftmaxCrossEntropyLoss" - attribute { - name: "ignore_index" - i: -100 - type: INT - } - attribute { - name: "reduction" - s: "mean" - type: STRING - } - } - name: "main_graph" - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 5 - } - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "target" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 12 -} diff --git a/test/onnx/expect/TestOperators.test_softmaxcrossentropy_3d_none.expect b/test/onnx/expect/TestOperators.test_softmaxcrossentropy_3d_none.expect deleted file mode 100644 index 948155bd18232..0000000000000 --- a/test/onnx/expect/TestOperators.test_softmaxcrossentropy_3d_none.expect +++ /dev/null @@ -1,77 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - input: "target" - output: "2" - name: "SoftmaxCrossEntropyLoss_0" - op_type: "SoftmaxCrossEntropyLoss" - attribute { - name: "ignore_index" - i: -100 - type: INT - } - attribute { - name: "reduction" - s: "none" - type: STRING - } - } - name: "main_graph" - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 5 - } - dim { - dim_value: 2 - } - } - } - } - } - input { - name: "target" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 2 - } - } - } - } - } -} -opset_import { - version: 12 -} diff --git a/test/onnx/expect/TestOperators.test_softmaxcrossentropy_4d.expect b/test/onnx/expect/TestOperators.test_softmaxcrossentropy_4d.expect deleted file mode 100644 index 51102fb606951..0000000000000 --- a/test/onnx/expect/TestOperators.test_softmaxcrossentropy_4d.expect +++ /dev/null @@ -1,77 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - input: "target" - output: "2" - name: "SoftmaxCrossEntropyLoss_0" - op_type: "SoftmaxCrossEntropyLoss" - attribute { - name: "ignore_index" - i: -100 - type: INT - } - attribute { - name: "reduction" - s: "mean" - type: STRING - } - } - name: "main_graph" - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 5 - } - dim { - dim_value: 2 - } - dim { - dim_value: 1 - } - } - } - } - } - input { - name: "target" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 2 - } - dim { - dim_value: 1 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 12 -} diff --git a/test/onnx/expect/TestOperators.test_softmaxcrossentropy_ignore_index.expect b/test/onnx/expect/TestOperators.test_softmaxcrossentropy_ignore_index.expect deleted file mode 100644 index 3641ca3851b10..0000000000000 --- a/test/onnx/expect/TestOperators.test_softmaxcrossentropy_ignore_index.expect +++ /dev/null @@ -1,65 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - input: "target" - output: "2" - name: "SoftmaxCrossEntropyLoss_0" - op_type: "SoftmaxCrossEntropyLoss" - attribute { - name: "ignore_index" - i: 1 - type: INT - } - attribute { - name: "reduction" - s: "mean" - type: STRING - } - } - name: "main_graph" - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 5 - } - } - } - } - } - input { - name: "target" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 12 -} diff --git a/test/onnx/expect/TestOperators.test_softmaxcrossentropy_weights.expect b/test/onnx/expect/TestOperators.test_softmaxcrossentropy_weights.expect deleted file mode 100644 index 6f5970ca864b8..0000000000000 --- a/test/onnx/expect/TestOperators.test_softmaxcrossentropy_weights.expect +++ /dev/null @@ -1,72 +0,0 @@ -ir_version: 7 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - input: "target" - input: "weight" - output: "3" - name: "SoftmaxCrossEntropyLoss_0" - op_type: "SoftmaxCrossEntropyLoss" - attribute { - name: "ignore_index" - i: -100 - type: INT - } - attribute { - name: "reduction" - s: "mean" - type: STRING - } - } - name: "main_graph" - initializer { - dims: 5 - data_type: 1 - name: "weight" - raw_data: "\334\204b?x\017\034\277C\300T?\246\205\346\275\227W\315\275" - } - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 5 - } - } - } - } - } - input { - name: "target" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_value: 3 - } - } - } - } - } - output { - name: "3" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 12 -} diff --git a/test/onnx/expect/TestOperators.test_split.expect b/test/onnx/expect/TestOperators.test_split.expect deleted file mode 100644 index b60a963f70ee2..0000000000000 --- a/test/onnx/expect/TestOperators.test_split.expect +++ /dev/null @@ -1,101 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Split_1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 3 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "tensor" - input: "onnx::Split_1" - output: "2" - output: "3" - output: "4" - name: "Split_2" - op_type: "Split" - attribute { - name: "axis" - i: 1 - type: INT - } - } - name: "main_graph" - input { - name: "tensor" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 6 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "3" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "4" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_split_with_sizes.expect b/test/onnx/expect/TestOperators.test_split_with_sizes.expect deleted file mode 100644 index 5fbb795e3d6e1..0000000000000 --- a/test/onnx/expect/TestOperators.test_split_with_sizes.expect +++ /dev/null @@ -1,101 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Split_1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 3 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\003\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "tensor" - input: "onnx::Split_1" - output: "2" - output: "3" - output: "4" - name: "Split_2" - op_type: "Split" - attribute { - name: "axis" - i: 1 - type: INT - } - } - name: "main_graph" - input { - name: "tensor" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 6 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "3" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 1 - } - } - } - } - } - output { - name: "4" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_sqrt.expect b/test/onnx/expect/TestOperators.test_sqrt.expect deleted file mode 100644 index a281d530da8c0..0000000000000 --- a/test/onnx/expect/TestOperators.test_sqrt.expect +++ /dev/null @@ -1,47 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Sqrt_0" - output: "1" - name: "Sqrt_0" - op_type: "Sqrt" - } - name: "main_graph" - input { - name: "onnx::Sqrt_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_std.expect b/test/onnx/expect/TestOperators.test_std.expect deleted file mode 100644 index fc6ce46cd6d70..0000000000000 --- a/test/onnx/expect/TestOperators.test_std.expect +++ /dev/null @@ -1,189 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ReduceMean_0" - output: "onnx::Sub_1" - name: "ReduceMean_2" - op_type: "ReduceMean" - attribute { - name: "axes" - ints: 0 - ints: 1 - type: INTS - } - attribute { - name: "keepdims" - i: 1 - type: INT - } - } - node { - input: "onnx::ReduceMean_0" - output: "onnx::Gather_2" - name: "Shape_3" - op_type: "Shape" - } - node { - output: "onnx::Gather_3" - name: "Constant_4" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 2 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Gather_2" - input: "onnx::Gather_3" - output: "onnx::ReduceProd_4" - name: "Gather_5" - op_type: "Gather" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "onnx::ReduceProd_4" - output: "onnx::Cast_5" - name: "ReduceProd_6" - op_type: "ReduceProd" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - node { - input: "onnx::ReduceMean_0" - input: "onnx::Sub_1" - output: "onnx::Mul_6" - name: "Sub_7" - op_type: "Sub" - } - node { - input: "onnx::Mul_6" - input: "onnx::Mul_6" - output: "onnx::ReduceMean_7" - name: "Mul_8" - op_type: "Mul" - } - node { - input: "onnx::ReduceMean_7" - output: "onnx::Mul_8" - name: "ReduceMean_9" - op_type: "ReduceMean" - attribute { - name: "axes" - ints: 0 - ints: 1 - type: INTS - } - attribute { - name: "keepdims" - i: 1 - type: INT - } - } - node { - input: "onnx::Cast_5" - output: "onnx::Mul_9" - name: "Cast_10" - op_type: "Cast" - attribute { - name: "to" - i: 1 - type: INT - } - } - node { - input: "onnx::Mul_8" - input: "onnx::Mul_9" - output: "onnx::Div_10" - name: "Mul_11" - op_type: "Mul" - } - node { - output: "onnx::Sub_11" - name: "Constant_12" - op_type: "Constant" - attribute { - name: "value" - t { - data_type: 1 - raw_data: "\000\000\200?" - } - type: TENSOR - } - } - node { - input: "onnx::Mul_9" - input: "onnx::Sub_11" - output: "onnx::Div_12" - name: "Sub_13" - op_type: "Sub" - } - node { - input: "onnx::Div_10" - input: "onnx::Div_12" - output: "onnx::Sqrt_13" - name: "Div_14" - op_type: "Div" - } - node { - input: "onnx::Sqrt_13" - output: "14" - name: "Sqrt_15" - op_type: "Sqrt" - } - name: "main_graph" - input { - name: "onnx::ReduceMean_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "14" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_sum.expect b/test/onnx/expect/TestOperators.test_sum.expect deleted file mode 100644 index 6a8cda46d3aa0..0000000000000 --- a/test/onnx/expect/TestOperators.test_sum.expect +++ /dev/null @@ -1,52 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::ReduceSum_0" - output: "1" - name: "ReduceSum_0" - op_type: "ReduceSum" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::ReduceSum_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_sum_dtype.expect b/test/onnx/expect/TestOperators.test_sum_dtype.expect deleted file mode 100644 index 238eb48a8323e..0000000000000 --- a/test/onnx/expect/TestOperators.test_sum_dtype.expect +++ /dev/null @@ -1,63 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Cast_0" - output: "onnx::ReduceSum_1" - name: "Cast_0" - op_type: "Cast" - attribute { - name: "to" - i: 11 - type: INT - } - } - node { - input: "onnx::ReduceSum_1" - output: "2" - name: "ReduceSum_1" - op_type: "ReduceSum" - attribute { - name: "keepdims" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::Cast_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 11 - shape { - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_tan.expect b/test/onnx/expect/TestOperators.test_tan.expect deleted file mode 100644 index c57ec4f079b67..0000000000000 --- a/test/onnx/expect/TestOperators.test_tan.expect +++ /dev/null @@ -1,47 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Tan_0" - output: "1" - name: "Tan_0" - op_type: "Tan" - } - name: "main_graph" - input { - name: "onnx::Tan_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_topk.expect b/test/onnx/expect/TestOperators.test_topk.expect deleted file mode 100644 index 92403ec5940c3..0000000000000 --- a/test/onnx/expect/TestOperators.test_topk.expect +++ /dev/null @@ -1,92 +0,0 @@ -ir_version: 5 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Reshape_2" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Reshape_1" - input: "onnx::Reshape_2" - output: "onnx::TopK_3" - name: "Reshape_2" - op_type: "Reshape" - } - node { - input: "onnx::TopK_0" - input: "onnx::TopK_3" - output: "4" - output: "5" - name: "TopK_3" - op_type: "TopK" - attribute { - name: "axis" - i: -1 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::TopK_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 5 - } - } - } - } - } - input { - name: "onnx::Reshape_1" - type { - tensor_type { - elem_type: 7 - shape { - } - } - } - } - output { - name: "4" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_param: "TopK4_dim_0" - } - } - } - } - } - output { - name: "5" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_param: "TopK5_dim_0" - } - } - } - } - } -} -opset_import { - version: 10 -} diff --git a/test/onnx/expect/TestOperators.test_topk_smallest_unsorted.expect b/test/onnx/expect/TestOperators.test_topk_smallest_unsorted.expect deleted file mode 100644 index cabc1b79f513f..0000000000000 --- a/test/onnx/expect/TestOperators.test_topk_smallest_unsorted.expect +++ /dev/null @@ -1,102 +0,0 @@ -ir_version: 6 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Reshape_2" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Reshape_1" - input: "onnx::Reshape_2" - output: "onnx::TopK_3" - name: "Reshape_2" - op_type: "Reshape" - } - node { - input: "onnx::TopK_0" - input: "onnx::TopK_3" - output: "4" - output: "5" - name: "TopK_3" - op_type: "TopK" - attribute { - name: "axis" - i: -1 - type: INT - } - attribute { - name: "largest" - i: 0 - type: INT - } - attribute { - name: "sorted" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::TopK_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 5 - } - } - } - } - } - input { - name: "onnx::Reshape_1" - type { - tensor_type { - elem_type: 7 - shape { - } - } - } - } - output { - name: "4" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_param: "TopK4_dim_0" - } - } - } - } - } - output { - name: "5" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_param: "TopK5_dim_0" - } - } - } - } - } -} -opset_import { - version: 11 -} diff --git a/test/onnx/expect/TestOperators.test_transpose.expect b/test/onnx/expect/TestOperators.test_transpose.expect deleted file mode 100644 index f437b050081bb..0000000000000 --- a/test/onnx/expect/TestOperators.test_transpose.expect +++ /dev/null @@ -1,47 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Identity_0" - output: "1" - name: "Identity_0" - op_type: "Identity" - } - name: "main_graph" - input { - name: "onnx::Identity_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_type_as.expect b/test/onnx/expect/TestOperators.test_type_as.expect deleted file mode 100644 index 0de5ea764fe00..0000000000000 --- a/test/onnx/expect/TestOperators.test_type_as.expect +++ /dev/null @@ -1,41 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "onnx::Identity_0" - output: "1" - name: "Identity_0" - op_type: "Identity" - } - name: "main_graph" - input { - name: "onnx::Identity_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_unfold.expect b/test/onnx/expect/TestOperators.test_unfold.expect deleted file mode 100644 index cf1cda7cb29a0..0000000000000 --- a/test/onnx/expect/TestOperators.test_unfold.expect +++ /dev/null @@ -1,206 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Slice_1" - name: "Constant_8" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_2" - name: "Constant_9" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_3" - name: "Constant_10" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Slice_0" - input: "onnx::Slice_2" - input: "onnx::Slice_3" - input: "onnx::Slice_1" - output: "onnx::Unsqueeze_4" - name: "Slice_11" - op_type: "Slice" - } - node { - output: "onnx::Slice_5" - name: "Constant_12" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_6" - name: "Constant_13" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_7" - name: "Constant_14" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\004\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Slice_0" - input: "onnx::Slice_6" - input: "onnx::Slice_7" - input: "onnx::Slice_5" - output: "onnx::Unsqueeze_8" - name: "Slice_15" - op_type: "Slice" - } - node { - output: "onnx::Unsqueeze_9" - name: "Constant_16" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Unsqueeze_4" - input: "onnx::Unsqueeze_9" - output: "onnx::Concat_10" - name: "Unsqueeze_17" - op_type: "Unsqueeze" - } - node { - output: "onnx::Unsqueeze_11" - name: "Constant_18" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Unsqueeze_8" - input: "onnx::Unsqueeze_11" - output: "onnx::Concat_12" - name: "Unsqueeze_19" - op_type: "Unsqueeze" - } - node { - input: "onnx::Concat_10" - input: "onnx::Concat_12" - output: "13" - name: "Concat_20" - op_type: "Concat" - attribute { - name: "axis" - i: 2 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::Slice_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "13" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 2 - } - dim { - dim_value: 2 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_unique.expect b/test/onnx/expect/TestOperators.test_unique.expect deleted file mode 100644 index 32ec260a00975..0000000000000 --- a/test/onnx/expect/TestOperators.test_unique.expect +++ /dev/null @@ -1,85 +0,0 @@ -ir_version: 6 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "input" - output: "1" - output: "2" - output: "3" - output: "4" - name: "Unique_0" - op_type: "Unique" - attribute { - name: "axis" - i: 0 - type: INT - } - attribute { - name: "sorted" - i: 1 - type: INT - } - } - name: "main_graph" - input { - name: "input" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - dim { - dim_value: 5 - } - } - } - } - } - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_param: "Unique1_dim_0" - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - dim { - dim_value: 5 - } - } - } - } - } - output { - name: "4" - type { - tensor_type { - elem_type: 7 - shape { - dim { - dim_param: "Unique4_dim_0" - } - } - } - } - } -} -opset_import { - version: 11 -} diff --git a/test/onnx/expect/TestOperators.test_unsqueeze.expect b/test/onnx/expect/TestOperators.test_unsqueeze.expect deleted file mode 100644 index 0cfebf81b1cad..0000000000000 --- a/test/onnx/expect/TestOperators.test_unsqueeze.expect +++ /dev/null @@ -1,65 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Unsqueeze_1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Unsqueeze_0" - input: "onnx::Unsqueeze_1" - output: "2" - name: "Unsqueeze_2" - op_type: "Unsqueeze" - } - name: "main_graph" - input { - name: "onnx::Unsqueeze_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - dim { - dim_value: 1 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_upsample_nearest_scale.expect b/test/onnx/expect/TestOperators.test_upsample_nearest_scale.expect deleted file mode 100644 index 61102d7a8fc93..0000000000000 --- a/test/onnx/expect/TestOperators.test_upsample_nearest_scale.expect +++ /dev/null @@ -1,95 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Resize_6" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 4 - data_type: 1 - raw_data: "\000\000\200?\000\000\200?\000\000\000@\000\000\000@" - } - type: TENSOR - } - } - node { - input: "x" - input: "" - input: "onnx::Resize_6" - output: "5" - name: "Resize_2" - op_type: "Resize" - attribute { - name: "coordinate_transformation_mode" - s: "asymmetric" - type: STRING - } - attribute { - name: "cubic_coeff_a" - f: -0.75 - type: FLOAT - } - attribute { - name: "mode" - s: "nearest" - type: STRING - } - attribute { - name: "nearest_mode" - s: "floor" - type: STRING - } - } - name: "main_graph" - input { - name: "x" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "5" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 6 - } - dim { - dim_value: 8 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_upsample_nearest_scale_default_scale_factor.expect b/test/onnx/expect/TestOperators.test_upsample_nearest_scale_default_scale_factor.expect deleted file mode 100644 index 61102d7a8fc93..0000000000000 --- a/test/onnx/expect/TestOperators.test_upsample_nearest_scale_default_scale_factor.expect +++ /dev/null @@ -1,95 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Resize_6" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 4 - data_type: 1 - raw_data: "\000\000\200?\000\000\200?\000\000\000@\000\000\000@" - } - type: TENSOR - } - } - node { - input: "x" - input: "" - input: "onnx::Resize_6" - output: "5" - name: "Resize_2" - op_type: "Resize" - attribute { - name: "coordinate_transformation_mode" - s: "asymmetric" - type: STRING - } - attribute { - name: "cubic_coeff_a" - f: -0.75 - type: FLOAT - } - attribute { - name: "mode" - s: "nearest" - type: STRING - } - attribute { - name: "nearest_mode" - s: "floor" - type: STRING - } - } - name: "main_graph" - input { - name: "x" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "5" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 6 - } - dim { - dim_value: 8 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_upsample_nearest_size.expect b/test/onnx/expect/TestOperators.test_upsample_nearest_size.expect deleted file mode 100644 index 1d22258f8328f..0000000000000 --- a/test/onnx/expect/TestOperators.test_upsample_nearest_size.expect +++ /dev/null @@ -1,165 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - input: "x" - output: "onnx::Slice_2" - name: "Shape_4" - op_type: "Shape" - } - node { - output: "onnx::Slice_3" - name: "Constant_5" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_4" - name: "Constant_6" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - output: "onnx::Slice_5" - name: "Constant_7" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 1 - data_type: 7 - raw_data: "\002\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Slice_2" - input: "onnx::Slice_4" - input: "onnx::Slice_5" - input: "onnx::Slice_3" - output: "onnx::Concat_6" - name: "Slice_8" - op_type: "Slice" - } - node { - output: "onnx::Concat_12" - name: "Constant_9" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 2 - data_type: 7 - raw_data: "\020\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Concat_6" - input: "onnx::Concat_12" - output: "onnx::Resize_8" - name: "Concat_10" - op_type: "Concat" - attribute { - name: "axis" - i: 0 - type: INT - } - } - node { - input: "x" - input: "" - input: "" - input: "onnx::Resize_8" - output: "11" - name: "Resize_11" - op_type: "Resize" - attribute { - name: "coordinate_transformation_mode" - s: "asymmetric" - type: STRING - } - attribute { - name: "cubic_coeff_a" - f: -0.75 - type: FLOAT - } - attribute { - name: "mode" - s: "nearest" - type: STRING - } - attribute { - name: "nearest_mode" - s: "floor" - type: STRING - } - } - name: "main_graph" - input { - name: "x" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "11" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 16 - } - dim { - dim_value: 16 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_view.expect b/test/onnx/expect/TestOperators.test_view.expect deleted file mode 100644 index bd47e46c85c14..0000000000000 --- a/test/onnx/expect/TestOperators.test_view.expect +++ /dev/null @@ -1,64 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Reshape_1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 2 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Reshape_0" - input: "onnx::Reshape_1" - output: "2" - name: "Reshape_2" - op_type: "Reshape" - attribute { - name: "allowzero" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::Reshape_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - } - } - } - } - output { - name: "2" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 1 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_view_flatten.expect b/test/onnx/expect/TestOperators.test_view_flatten.expect deleted file mode 100644 index 2182cd8b312da..0000000000000 --- a/test/onnx/expect/TestOperators.test_view_flatten.expect +++ /dev/null @@ -1,73 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "onnx::Reshape_11" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 2 - data_type: 7 - raw_data: "\001\000\000\000\000\000\000\000\030\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - node { - input: "onnx::Reshape_0" - input: "onnx::Reshape_11" - output: "8" - name: "Reshape_2" - op_type: "Reshape" - attribute { - name: "allowzero" - i: 0 - type: INT - } - } - name: "main_graph" - input { - name: "onnx::Reshape_0" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 2 - } - dim { - dim_value: 3 - } - dim { - dim_value: 4 - } - } - } - } - } - output { - name: "8" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 1 - } - dim { - dim_value: 24 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/expect/TestOperators.test_zeros_like.expect b/test/onnx/expect/TestOperators.test_zeros_like.expect deleted file mode 100644 index 1438c1d6f1701..0000000000000 --- a/test/onnx/expect/TestOperators.test_zeros_like.expect +++ /dev/null @@ -1,40 +0,0 @@ -ir_version: 8 -producer_name: "pytorch" -producer_version: "CURRENT_VERSION" -graph { - node { - output: "1" - name: "Constant_1" - op_type: "Constant" - attribute { - name: "value" - t { - dims: 5 - dims: 8 - data_type: 1 - raw_data: "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000" - } - type: TENSOR - } - } - name: "main_graph" - output { - name: "1" - type { - tensor_type { - elem_type: 1 - shape { - dim { - dim_value: 5 - } - dim { - dim_value: 8 - } - } - } - } - } -} -opset_import { - version: 17 -} diff --git a/test/onnx/test_operators.py b/test/onnx/test_operators.py deleted file mode 100644 index 4cbe7cb7b4015..0000000000000 --- a/test/onnx/test_operators.py +++ /dev/null @@ -1,1293 +0,0 @@ -# Owner(s): ["module: onnx"] - -""" -Usage: python test/onnx/test_operators.py [--no-onnx] [--produce-onnx-test-data] - --no-onnx: no onnx python dependency - --produce-onnx-test-data: generate onnx test data - --accept: accept onnx updates and overwrite models -""" - -import glob -import inspect -import io -import itertools -import operator -import os -import shutil -import tempfile - -# Full diff for expect files -import unittest - -from pytorch_test_common import ( - BATCH_SIZE, - flatten, - RNN_HIDDEN_SIZE, - RNN_INPUT_SIZE, - RNN_SEQUENCE_LENGTH, -) - -import torch -import torch.nn as nn -import torch.nn.functional as F -import torch.onnx -from torch.autograd import Function, Variable -from torch.nn import functional, Module -from torch.onnx._internal import diagnostics -from torch.onnx.symbolic_helper import ( - _get_tensor_dim_size, - _get_tensor_sizes, - parse_args, -) -from torch.testing._internal import common_utils -from torch.testing._internal.common_utils import skipIfNoLapack - - -unittest.TestCase.maxDiff = None - -_onnx_test = False # flag to produce onnx test cases. -_onnx_dep = True # flag to import onnx package. - - -def export_to_pbtxt(model, inputs, *args, **kwargs): - return torch.onnx.export_to_pretty_string( - model, inputs, *args, google_printer=True, **kwargs - ) - - -def export_to_pb(model, inputs, *args, **kwargs): - f = io.BytesIO() - with torch.no_grad(): - torch.onnx.export(model, inputs, f, *args, **kwargs) - return f.getvalue() - - -class FuncModule(Module): - def __init__(self, f, params=None): - if params is None: - params = () - super().__init__() - self.f = f - self.params = nn.ParameterList(list(params)) - - def forward(self, *args): - return self.f(*itertools.chain(args, self.params)) - - -class TestOperators(common_utils.TestCase): - def setUp(self): - super().setUp() - diagnostics.engine.clear() - - def assertONNX(self, f, args, params=None, **kwargs): - if params is None: - params = () - if isinstance(f, nn.Module): - m = f - else: - m = FuncModule(f, params) - m.eval() - onnx_model_pbtxt = export_to_pbtxt(m, args, **kwargs) - subname = kwargs.pop("subname", None) - self.assertExpected(onnx_model_pbtxt, subname) - if _onnx_dep: - onnx_model_pb = export_to_pb(m, args, **kwargs) - import onnx - import onnx.checker - import onnx.numpy_helper - import onnx_test_common - - model_def = onnx.ModelProto.FromString(onnx_model_pb) - onnx.checker.check_model(model_def) - if _onnx_test: - test_function = inspect.stack()[1][0].f_code.co_name - test_name = test_function[0:4] + "_operator" + test_function[4:] - output_dir = os.path.join( - onnx_test_common.pytorch_operator_dir, test_name - ) - # Assume: - # 1) the old test should be delete before the test. - # 2) only one assertONNX in each test, otherwise will override the data. - assert not os.path.exists(output_dir), f"{output_dir} should not exist!" - os.makedirs(output_dir) - with open(os.path.join(output_dir, "model.onnx"), "wb") as file: - file.write(model_def.SerializeToString()) - data_dir = os.path.join(output_dir, "test_data_set_0") - os.makedirs(data_dir) - if isinstance(args, Variable): - args = (args,) - for index, var in enumerate(flatten(args)): - tensor = onnx.numpy_helper.from_array(var.data.numpy()) - with open( - os.path.join(data_dir, f"input_{index}.pb"), "wb" - ) as file: - file.write(tensor.SerializeToString()) - outputs = m(*args) - if isinstance(outputs, Variable): - outputs = (outputs,) - for index, var in enumerate(flatten(outputs)): - tensor = onnx.numpy_helper.from_array(var.data.numpy()) - with open( - os.path.join(data_dir, f"output_{index}.pb"), "wb" - ) as file: - file.write(tensor.SerializeToString()) - - def assertONNXRaises(self, err, f, args, params=None, **kwargs): - if params is None: - params = () - if isinstance(f, nn.Module): - m = f - else: - m = FuncModule(f, params) - self.assertExpectedRaises(err, lambda: export_to_pbtxt(m, args, **kwargs)) - - def assertONNXRaisesRegex(self, err, reg, f, args, params=None, **kwargs): - if params is None: - params = () - if isinstance(f, nn.Module): - m = f - else: - m = FuncModule(f, params) - with self.assertRaisesRegex(err, reg): - export_to_pbtxt(m, args, **kwargs) - - def test_basic(self): - x = torch.tensor([0.4], requires_grad=True) - y = torch.tensor([0.7], requires_grad=True) - self.assertONNX(lambda x, y: -torch.sigmoid(torch.tanh(x * (x + y))), (x, y)) - - def test_view(self): - x = torch.tensor([0.0], requires_grad=True) - self.assertONNX(lambda x: x.view(1, 1), x) - - def test_index(self): - x = torch.tensor([[0.0]], requires_grad=True) - self.assertONNX(lambda x: x[0], x) - - def test_type_as(self): - x = torch.tensor([0.0], requires_grad=True) - self.assertONNX(lambda x: x.type_as(x), x) - - def test_addconstant(self): - x = torch.randn(2, 3, requires_grad=True).double() - self.assertONNX(lambda x: x + 1, x) - - def test_add_broadcast(self): - x = torch.randn(2, 3, requires_grad=True).double() - y = torch.randn(3, requires_grad=True).double() - self.assertONNX(operator.add, (x, y)) - - def test_add_left_broadcast(self): - x = torch.randn(3, requires_grad=True).double() - y = torch.randn(2, 3, requires_grad=True).double() - self.assertONNX(operator.add, (x, y)) - - def test_add_size1_broadcast(self): - x = torch.randn(2, 3, requires_grad=True).double() - y = torch.randn(2, 1, requires_grad=True).double() - self.assertONNX(operator.add, (x, y)) - - def test_add_size1_right_broadcast(self): - x = torch.randn(2, 3, requires_grad=True).double() - y = torch.randn(3, requires_grad=True).double() - self.assertONNX(operator.add, (x, y)) - - def test_add_size1_singleton_broadcast(self): - x = torch.randn(2, 3, requires_grad=True).double() - y = torch.randn(1, 3, requires_grad=True).double() - self.assertONNX(operator.add, (x, y)) - - def test_rsub(self): - x = torch.randn(2, 3, requires_grad=True).double() - self.assertONNX(lambda x: 1 - x, (x,)) - - def test_mul_bool(self): - x = torch.tensor([True, False, True, False]) - y = torch.tensor([True, True, False, False]) - self.assertONNX(lambda x, y: torch.mul(x, y), (x, y)) - - def test_mul_fp_bool(self): - x = torch.tensor([9.4, 1.7, 3.6]) - y = torch.tensor([True, True, False]) - self.assertONNX(lambda x, y: torch.mul(x, y), (x, y)) - - def test_transpose(self): - x = torch.tensor([[0.0, 1.0], [2.0, 3.0]], requires_grad=True) - self.assertONNX(lambda x: x.transpose(0, 1).transpose(1, 0), x) - - def test_chunk(self): - x = torch.tensor([0.0, 1.0, 2.0], requires_grad=True) - self.assertONNX(lambda x: x.chunk(2), x) - - def test_split(self): - x = torch.tensor( - [[0.0, 1.0, 1.0, 0.0, 2.0, 2.0], [2.0, 3.0, 3.0, 2.0, 1.0, 1.0]] - ) - self.assertONNX(lambda x: torch.split(x, 2, 1), x) - - def test_split_with_sizes(self): - x = torch.tensor( - [[0.0, 1.0, 1.0, 0.0, 2.0, 2.0], [2.0, 3.0, 3.0, 2.0, 1.0, 1.0]] - ) - self.assertONNX(lambda x: torch.split(x, [2, 1, 3], 1), x) - - def test_concat2(self): - x = torch.randn(2, 3) - y = torch.randn(2, 3) - self.assertONNX(lambda inputs: torch.cat(inputs, 1), ((x, y),)) - - def test_mm(self): - m1 = torch.randn(2, 3, requires_grad=True) - m2 = torch.randn(3, 4, requires_grad=True) - self.assertONNX(torch.mm, (m1, m2)) - - def test_addmm(self): - m1 = torch.randn(2, 3, requires_grad=True) - m2 = torch.randn(3, 4, requires_grad=True) - m3 = torch.randn(4, requires_grad=True) - self.assertONNX( - lambda x, y, z: torch.addmm(torch.addmm(z, x, y), x, y), (m1, m2, m3) - ) - - def test_permute2(self): - x = torch.tensor([[[[[[0.0]]]]]], requires_grad=True) - self.assertONNX(lambda x: x.permute(0, 1, 4, 2, 5, 3), x) - - def test_pad(self): - x = torch.tensor( - [[[[0.0, 1.0, 1.0, 1.0], [2.0, 3.0, 7.0, 7.0]]]], requires_grad=True - ) - self.assertONNX(nn.ReflectionPad2d((2, 3, 0, 1)), x) - - def test_params(self): - x = torch.tensor([[1.0, 2.0], [3.0, 4.0]], requires_grad=True) - y = nn.Parameter(torch.tensor([[1.0, 2.0], [3.0, 4.0]], requires_grad=True)) - self.assertONNX( - lambda x, y: -torch.sigmoid(torch.tanh(x * (x + y))), - x, - params=(y,), - keep_initializers_as_inputs=True, - ) - - def test_params_onnx_irv4(self): - x = torch.tensor([[1.0, 2.0], [3.0, 4.0]], requires_grad=True) - y = nn.Parameter(torch.tensor([[1.0, 2.0], [3.0, 4.0]], requires_grad=True)) - self.assertONNX( - lambda x, y: -torch.sigmoid(torch.tanh(x * (x + y))), - x, - params=(y,), - keep_initializers_as_inputs=False, - ) - - def test_symbolic_mismatch(self): - class MyFun(Function): - @staticmethod - def symbolic(g, x): - # The inside of this function should never be invoked, because - # we will fail due to an argument mismatch first. - raise AssertionError - - @staticmethod - def forward(ctx, x, y): - return x + y - - x = torch.ones(2, 2) - y = torch.ones(2, 2) - # NB: Don't use expect test here, the type error wobbles depending - # on Python version - with self.assertRaisesRegex(TypeError, "occurred when translating MyFun"): - export_to_pbtxt(FuncModule(MyFun().apply), (x, y)) - - # TODO: Do an nn style test for these - def test_batchnorm(self): - x = torch.ones(2, 2, 2, 2, requires_grad=True) - self.assertONNX(nn.BatchNorm2d(2), x, keep_initializers_as_inputs=True) - - def test_batchnorm_onnx_irv4(self): - x = torch.ones(2, 2, 2, 2, requires_grad=True) - self.assertONNX(nn.BatchNorm2d(2), x) - - def test_batchnorm_1d(self): - x = torch.ones(2, 2, requires_grad=True) - self.assertONNX(nn.BatchNorm1d(2), x, keep_initializers_as_inputs=True) - - def test_batchnorm_training(self): - x = torch.ones(2, 2, 2, 2, requires_grad=True) - self.assertONNX( - nn.BatchNorm2d(2), - x, - training=torch.onnx.TrainingMode.TRAINING, - keep_initializers_as_inputs=True, - ) - - def test_conv(self): - x = torch.ones(20, 16, 50, 40, requires_grad=True) - self.assertONNX( - nn.Conv2d(16, 13, 3, bias=False), x, keep_initializers_as_inputs=True - ) - - def test_conv_onnx_irv4(self): - x = torch.ones(20, 16, 50, 40, requires_grad=True) - self.assertONNX(nn.Conv2d(16, 13, 3, bias=False), x) - - def test_conv_onnx_irv4_opset8(self): - # This test point checks that for opset 8 (or lower), even if - # keep_initializers_as_inputs is set to False, it is ignored, - # and initializers are listed as ONNX graph input, in accordance - # with ONNX IR v3 semantics (which apply to opset version <= 8). - x = torch.ones(1, 2, 5, 7, requires_grad=True) - conv_node = nn.Conv2d(2, 4, 3, bias=False) - conv_node.weight.data.fill_(1.0) - self.assertONNX( - conv_node, x, opset_version=8, keep_initializers_as_inputs=False - ) - - def test_conv_variable_length(self): - x = torch.ones(5, 3, 6, 6, requires_grad=True) - model = torch.nn.Conv2d(3, 2, 3) - - dynamic_axes = { - "input_1": [0, 2, 3], - "output_1": {0: "output_1_variable_dim_0", 1: "output_1_variable_dim_1"}, - } - model_proto_file = tempfile.NamedTemporaryFile() - torch.onnx.export( - model, - x, - model_proto_file.name, - verbose=True, - input_names=["input_1"], - output_names=["output_1"], - dynamic_axes=dynamic_axes, - ) - - import onnx - - onnx_model = onnx.load(model_proto_file.name) - onnx.checker.check_model(onnx_model) - - # Asserting the default dynamic axes names are generated when custom names are not provided - assert ( - onnx_model.graph.input[0].type.tensor_type.shape.dim[0].dim_param - == "input_1_dynamic_axes_1" - ) - assert ( - onnx_model.graph.input[0].type.tensor_type.shape.dim[2].dim_param - == "input_1_dynamic_axes_2" - ) - assert ( - onnx_model.graph.input[0].type.tensor_type.shape.dim[3].dim_param - == "input_1_dynamic_axes_3" - ) - - # Asserting the custom names are applied when provided - assert ( - onnx_model.graph.output[0].type.tensor_type.shape.dim[0].dim_param - == "output_1_variable_dim_0" - ) - assert ( - onnx_model.graph.output[0].type.tensor_type.shape.dim[1].dim_param - == "output_1_variable_dim_1" - ) - - def test_convtranspose(self): - x = torch.ones(2, 3, 4, 5, requires_grad=True) - self.assertONNX( - nn.ConvTranspose2d( - 3, 3, 3, stride=3, bias=False, padding=1, output_padding=2 - ), - x, - keep_initializers_as_inputs=True, - ) - - def test_maxpool(self): - x = torch.randn(20, 16, 50) - self.assertONNX(nn.MaxPool1d(3, stride=2), x) - - def test_maxpool_dilations(self): - x = torch.randn(20, 16, 50) - self.assertONNX(nn.MaxPool1d(2, stride=1, dilation=2), x, opset_version=10) - - def test_avg_pool2d(self): - x = torch.randn(20, 16, 50, 32) - self.assertONNX(nn.AvgPool2d(3, stride=2), x) - - def test_maxpool_indices(self): - x = torch.randn(20, 16, 50) - self.assertONNX(nn.MaxPool1d(3, stride=2, return_indices=True), x) - - def test_at_op(self): - x = torch.randn(3, 4) - - class MyFun(Function): - @staticmethod - def symbolic(g, x): - return g.at("add", x, x) - - @staticmethod - def forward(ctx, x): - return x + x - - class MyModule(Module): - def forward(self, x): - return MyFun.apply(x) - - self.assertONNX( - MyModule(), - x, - operator_export_type=torch.onnx.OperatorExportTypes.ONNX_ATEN_FALLBACK, - ) - - def test_clip(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.clamp(x, min=-0.5, max=0.5), x) - - def test_clip_min(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: x.clamp(min=-0.1), x) - - def test_clip_max(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: x.clamp(max=0.1), x) - - def test_hardtanh(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.nn.Hardtanh(-0.5, 0.5)(x), x) - - def test_full(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.full(x.shape, 2.0), x) - - def test_full_like(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.full_like(x, 2), x) - - def test_max(self): - x = torch.randn(3, 4, requires_grad=True) - y = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x, y: torch.max(x, y), (x, y)) - - def test_min(self): - x = torch.randn(3, 4, requires_grad=True) - y = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x, y: torch.min(x, y), (x, y)) - - def test_mean(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.mean(x), x) - - def test_reduced_mean(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.mean(x, dim=2), x) - - def test_reduced_mean_keepdim(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.mean(x, dim=(2, 3), keepdim=True), x) - - def test_mean_dtype(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.mean(x, dtype=torch.double), x) - - def test_reduced_mean_dtype(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.mean(x, dim=0, dtype=torch.double), x) - - def test_sum(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.sum(x), x) - - def test_sum_dtype(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.sum(x, dtype=torch.double), x) - - def test_reduced_sum_dtype(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.sum(x, dim=0, dtype=torch.double), x) - - def test_reduced_sum(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.sum(x, dim=(1, 2)), x) - - def test_reduced_sum_keepdim(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.sum(x, dim=2, keepdim=True), x) - - def test_prod(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.prod(x), x) - - def test_reduced_prod(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.prod(x, dim=2), x) - - def test_reduced_prod_keepdim(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.prod(x, dim=2, keepdim=True), x) - - def test_prod_dtype(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.prod(x, dtype=torch.double), x) - - def test_reduced_prod_dtype(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.prod(x, dim=0, dtype=torch.double), x) - - def test_sqrt(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.sqrt(x), x) - - def test_rsqrt(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.rsqrt(x), x) - - def test_equal(self): - x = torch.randn(1, 2, 3, 1, requires_grad=False).int() - y = torch.randn(1, 4, requires_grad=False).int() - self.assertONNX(operator.eq, (x, y)) - - def test_lt(self): - x = torch.randn(1, 2, 3, 1, requires_grad=False).int() - y = torch.randn(1, 4, requires_grad=False).int() - self.assertONNX(operator.lt, (x, y)) - - def test_gt(self): - x = torch.randn(1, 2, 3, 1, requires_grad=False).int() - y = torch.randn(1, 4, requires_grad=False).int() - self.assertONNX(operator.gt, (x, y)) - - def test_le(self): - x = torch.randn(3, 4, requires_grad=False).int() - y = torch.randn(3, 4, requires_grad=False).int() - self.assertONNX(operator.le, (x, y)) - - def test_ge(self): - x = torch.randn(3, 4, requires_grad=False).int() - y = torch.randn(3, 4, requires_grad=False).int() - self.assertONNX(operator.ge, (x, y)) - - def test_exp(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x: x.exp(), x) - - def test_sin(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x: x.sin(), x) - - def test_cos(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x: x.cos(), x) - - def test_tan(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x: x.tan(), x) - - def test_asin(self): - x = torch.rand(3, 4, requires_grad=True) - self.assertONNX(lambda x: x.asin(), x) - - def test_acos(self): - x = torch.rand(3, 4, requires_grad=True) - self.assertONNX(lambda x: x.acos(), x) - - def test_slice(self): - x = torch.rand(3, 4, requires_grad=True) - self.assertONNX(lambda x: x[:, 1:2], x) - - def test_slice_dynamic(self): - x = torch.rand(3, 4, requires_grad=True) - self.assertONNX(lambda x: x[x.size(0) :, x.size(1) - 3], x, opset_version=10) - - def test_sign(self): - x = torch.rand(3, 4, requires_grad=True) - self.assertONNX(lambda x: x.sign(), x) - - def test_narrow(self): - x = torch.randn(3, 3, requires_grad=True) - self.assertONNX(lambda x: torch.narrow(x, 0, 0, 2), x) - - def test_atan(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x: x.atan(), x) - - def test_view_flatten(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: x.view(x.size()[0], x.numel() // x.size()[0]), x) - - def test_flatten(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.flatten(x), x) - - def test_flatten2D(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.flatten(x, 1), x) - - def test_isnan(self): - x = torch.tensor([1, float("nan"), 2]) - self.assertONNX(lambda x: torch.isnan(x), x) - - def test_argmax(self): - x = torch.randn(4, 4, requires_grad=True) - self.assertONNX(lambda x: torch.argmax(x, dim=1), x) - - def test_logsoftmax(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(nn.LogSoftmax(dim=3), x) - - def test_pow(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - y = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x, y: x.pow(y), (x, y)) - - def test_elu(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(nn.ELU(), x) - - def test_selu(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(nn.SELU(), x) - - def test_repeat(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: x.repeat(1, 2, 3, 4), x) - - def test_repeat_dim_overflow(self): - x = torch.randn(1, 2, requires_grad=True) - self.assertONNX(lambda x: x.repeat(1, 2, 3, 4), x) - - def test_norm_p1(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: x.norm(p=1, dim=2), (x)) - - def test_norm_p2(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: x.norm(p=2, dim=2), (x)) - - def test_upsample_nearest_scale(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX( - lambda x: nn.functional.interpolate( - x, scale_factor=2.0, mode="nearest", recompute_scale_factor=False - ), - x, - ) - - def test_upsample_nearest_scale_default_scale_factor(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX( - lambda x: nn.functional.interpolate(x, scale_factor=2.0, mode="nearest"), x - ) - - def test_upsample_nearest_size(self): - x = torch.randn(1, 2, 3, 4, requires_grad=True) - self.assertONNX( - lambda x: nn.functional.interpolate(x, size=16, mode="nearest"), x - ) - - def test_unsqueeze(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x: x.unsqueeze(len(x.shape)), x) - - def test_batchnorm_noaffine(self): - x = torch.randn(128, 128, 1, 1, requires_grad=True) - self.assertONNX( - nn.BatchNorm2d(128, affine=False, momentum=0.3), - x, - keep_initializers_as_inputs=True, - ) - - def test_embedding_bags(self): - emb_bag = nn.EmbeddingBag(10, 8) - input = torch.tensor([1, 2, 3, 4]).long() - offset = torch.tensor([0]).long() - self.assertONNX( - emb_bag, - (input, offset), - keep_initializers_as_inputs=True, - operator_export_type=torch.onnx.OperatorExportTypes.ONNX_ATEN_FALLBACK, - ) - - def test_implicit_expand(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x: x + 1, x) - - def test_reduce_sum_negative_indices(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x: x.sum(-1), x) - - def test_randn(self): - x = torch.randn(1, 2, 3, 4) - self.assertONNX(lambda x: torch.randn(1, 2, 3, 4) + x, x) - - def test_rand(self): - x = torch.rand(1, 2, 3, 4) - self.assertONNX(lambda x: torch.rand(1, 2, 3, 4) + x, x) - - def test_rrelu(self): - x = torch.randn(1, 2, 3, 4) - self.assertONNX(torch.nn.RReLU(), x) - - def test_prelu(self): - x = torch.randn(1, 2, 3, 4) - self.assertONNX(torch.nn.PReLU(2), x, keep_initializers_as_inputs=True) - - def test_log_sigmoid(self): - x = torch.randn(1, 2, 3, 4) - self.assertONNX(torch.nn.LogSigmoid(), x) - - def test_linear(self): - x = torch.randn(3, 4) - self.assertONNX( - torch.nn.Linear(4, 5, bias=True), x, keep_initializers_as_inputs=True - ) - - def test_empty_like(self): - x = torch.randn(5, 8, requires_grad=True) - self.assertONNX(lambda x: torch.empty_like(x), x) - - def test_zeros_like(self): - x = torch.randn(5, 8, requires_grad=True) - self.assertONNX(lambda x: torch.zeros_like(x), x) - - def test_ones_like(self): - x = torch.randn(6, 10, requires_grad=True) - self.assertONNX(lambda x: torch.ones_like(x), x) - - def test_expand(self): - x = torch.randn(6, 1, requires_grad=True) - self.assertONNX(lambda x: x.expand(4, 6, 2), x) - - def test_ne(self): - x = torch.randn(1, 2, 3, 1, requires_grad=False).int() - y = torch.randn(1, 4, requires_grad=False).int() - self.assertONNX(lambda x, y: torch.ne(x, y), (x, y)) - - def test_reducemax(self): - x = torch.randn(1, 2, 3, 4) - self.assertONNX(lambda x: torch.max(x), x) - - def test_reducemin(self): - x = torch.randn(1, 2, 3, 4) - self.assertONNX(lambda x: torch.min(x), x) - - def test_erf(self): - x = torch.randn(1, 2, 3, 4) - self.assertONNX(lambda x: x.erf(), x) - - def test_dropout(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX(lambda x: torch.max(functional.dropout(x, training=False)), x) - - def test_dropout_default(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX( - lambda x: torch.max( - functional.dropout( - x, - ) - ), - x, - ) - - def test_dropout_training(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX( - lambda x: torch.max(functional.dropout(x)), - x, - training=torch.onnx.TrainingMode.TRAINING, - ) - - def test_dropout_opset12(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX( - lambda x: torch.max(functional.dropout(x, training=False)), - x, - opset_version=12, - ) - - def test_dropout_training_opset12(self): - x = torch.randn(3, 4, requires_grad=True) - self.assertONNX( - lambda x: torch.max(functional.dropout(x)), - x, - opset_version=12, - training=torch.onnx.TrainingMode.TRAINING, - ) - - def test_nonzero(self): - x = torch.tensor( - [[[2.0, 2.0], [1.0, 0.0]], [[0.0, 0.0], [1.0, 1.0]]], requires_grad=True - ) - self.assertONNX(lambda x: torch.nonzero(x), x) - - def test_gather(self): - data = torch.randn(3, 4, 3, requires_grad=True) - index = torch.tensor([2, 0]).view(1, 2, 1).expand(3, 2, 3) - self.assertONNX(lambda data, index: data.gather(1, index), (data, index)) - - def test_gather_opset11(self): - data = torch.randn(3, 4, 3, requires_grad=True) - index = torch.tensor([2, 0]).view(1, 2, 1).expand(3, 2, 3) - self.assertONNX( - lambda data, index: data.gather(1, index), (data, index), opset_version=11 - ) - - def test_scatter_add(self): - data = torch.tensor([[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]) - indices = torch.tensor([[1, 0], [0, 1], [0, 1]], dtype=torch.int64) - values = torch.tensor([[1.0, 1.1], [2.0, 2.1], [3.0, 3.1]]) - self.assertONNX( - lambda data, index: data.scatter_add(1, indices, values), - (data, (indices, values)), - ) - - def test_scatter_add_opset11(self): - data = torch.tensor([[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]) - indices = torch.tensor([[1, 0], [0, 1], [0, 1]], dtype=torch.int64) - values = torch.tensor([[1.0, 1.1], [2.0, 2.1], [3.0, 3.1]]) - self.assertONNX( - lambda data, index: data.scatter_add(1, indices, values), - (data, (indices, values)), - opset_version=11, - ) - - def test_scatter_add_opset16(self): - data = torch.tensor([[0.0, 0.0, 0.0], [0.0, 0.0, 0.0], [0.0, 0.0, 0.0]]) - indices = torch.tensor([[0, 0], [1, 1], [0, 1]], dtype=torch.int64) - values = torch.tensor([[1.0, 1.1], [2.0, 2.1], [3.0, 3.1]]) - self.assertONNX( - lambda data, index: data.scatter_add(1, indices, values), - (data, (indices, values)), - opset_version=16, - ) - - def test_master_opset(self): - x = torch.randn(2, 3).float() - y = torch.randn(2, 3).float() - self.assertONNX(operator.add, (x, y), opset_version=10) - - def test_std(self): - x = torch.randn(2, 3, 4).float() - self.assertONNX( - lambda x: torch.std(x, dim=(0, 1), unbiased=True, keepdim=True), x - ) - - def test_cumsum(self): - x = torch.randn(2, 3, 4, requires_grad=True) - self.assertONNX(lambda *args: torch.cumsum(*args, dim=1), x, opset_version=11) - - def test_dict(self): - class MyModel(torch.nn.Module): - def forward(self, x_in): - x_out = {} - x_out["test_key_out"] = torch.add( - x_in[list(x_in.keys())[0]], # noqa: RUF015 - list(x_in.keys())[0], # noqa: RUF015 - ) - return x_out - - x = {torch.tensor(1.0): torch.randn(1, 2, 3)} - self.assertONNX(MyModel(), (x, {})) - - def test_dict_str(self): - class MyModel(torch.nn.Module): - def forward(self, x_in): - x_out = {} - x_out["test_key_out"] = torch.add(x_in["test_key_in"], 2.0) - return x_out - - x = {"test_key_in": torch.randn(1, 2, 3)} - self.assertONNX(MyModel(), (x, {})) - - def test_arange_dynamic(self): - class TestModel(torch.nn.Module): - def forward(self, input): - return torch.arange(input.shape[0], input.shape[0] + 5, 0.5) - - input = torch.randn(5, 3, 2) - self.assertONNX(TestModel(), input, opset_version=11) - - def test_bitshift(self): - class BitshiftModel(torch.nn.Module): - def forward(self, input): - return input >> 1, input >> 2 - - input = torch.arange(24, dtype=torch.uint8).reshape(3, 4, 2) - self.assertONNX(BitshiftModel(), input, opset_version=11) - - def test_bitwise_and(self): - class BiwiseAndModel(torch.nn.Module): - def forward(self, input, other): - return torch.bitwise_and(input, other), input & 2 - - input = torch.randint(0, 100, (2, 3, 4), dtype=torch.uint8) - other = torch.randint(-50, 50, (2, 3, 4), dtype=torch.int8) - self.assertONNX(BiwiseAndModel(), (input, other), opset_version=18) - - def test_layer_norm_aten(self): - model = torch.nn.LayerNorm([10, 10]) - x = torch.randn(20, 5, 10, 10) - self.assertONNX( - model, - x, - operator_export_type=torch.onnx.OperatorExportTypes.ONNX_ATEN_FALLBACK, - ) - - def test_pixel_shuffle(self): - x = torch.randn(2, 8, 3, 4).float() - self.assertONNX( - lambda x: torch.pixel_shuffle(x, upscale_factor=2), x, opset_version=11 - ) - - def test_frobenius_norm(self): - x = torch.randn(2, 3, 4).float() - self.assertONNX(lambda x: torch.norm(x, p="fro", dim=(0, 1), keepdim=True), x) - - def test_unfold(self): - x = torch.randn(2, 3, 4, requires_grad=True) - self.assertONNX(lambda x: x.unfold(dimension=2, size=2, step=2), x) - - def test_remainder(self): - x = torch.randn(2, 3, 4) - y = torch.randn(2, 1, 4) - self.assertONNX(lambda x, y: torch.remainder(x, y), (x, y)) - - def test_fmod(self): - x = torch.randn(2, 3, 4) - y = torch.randn(2, 1, 4) - self.assertONNX(lambda x, y: torch.fmod(x, y), (x, y), opset_version=10) - - def test_gelu(self): - x = torch.randn(2, 3, 4, 5, requires_grad=True) - self.assertONNX(lambda x: torch.nn.functional.gelu(x), x) - - def test_unique(self): - x = torch.randint(3, (2, 3, 4, 5)).float() - self.assertONNX( - lambda x: torch.unique( - x, dim=0, sorted=True, return_inverse=False, return_counts=True - ), - x, - opset_version=11, - ) - - def test_meshgrid(self): - x = torch.ones(3, requires_grad=True) - y = torch.zeros(4, requires_grad=True) - z = torch.ones(5, requires_grad=True) - self.assertONNX(lambda x, y, z: torch.meshgrid(x, y, z), (x, y, z)) - - def test_meshgrid_indexing(self): - x = torch.ones(3, requires_grad=True) - y = torch.zeros(4, requires_grad=True) - z = torch.ones(5, requires_grad=True) - self.assertONNX( - lambda x, y, z: torch.meshgrid(x, y, z, indexing="xy"), - (x, y, z), - opset_version=9, - ) - - def test_topk(self): - x = torch.arange(1.0, 6.0, requires_grad=True) - k = torch.tensor(3) - self.assertONNX(lambda x, k: torch.topk(x, k), (x, k), opset_version=10) - - def test_topk_smallest_unsorted(self): - x = torch.arange(1.0, 6.0, requires_grad=True) - k = torch.tensor(3) - self.assertONNX( - lambda x, k: torch.topk(x, k, largest=False, sorted=False), - (x, k), - opset_version=11, - ) - - def test_baddbmm(self): - x = torch.randn(10, 3, 5) - b1 = torch.randn(10, 3, 4) - b2 = torch.randn(10, 4, 5) - self.assertONNX(lambda x, b1, b2: torch.baddbmm(x, b1, b2), (x, b1, b2)) - - def test_round(self): - x = torch.tensor([0.9920, -1.0362, -1.5000, 2.5000], requires_grad=True) - self.assertONNX(lambda x: torch.round(x), x, opset_version=11) - - def test_dim(self): - x = torch.ones((2, 2), requires_grad=True) - self.assertONNX(lambda x: torch.scalar_tensor(x.dim()), x) - - @skipIfNoLapack - def test_det(self): - x = torch.randn(2, 3, 5, 5, device=torch.device("cpu")) - self.assertONNX(lambda x: torch.det(x), x, opset_version=11) - self.assertONNX(lambda x: torch.linalg.det(x), x, opset_version=11) - - def test_softmaxcrossentropy(self): - x = torch.randn(3, 5) - y = torch.empty(3, dtype=torch.long).random_(5) - self.assertONNX(torch.nn.CrossEntropyLoss(), (x, y), opset_version=12) - - def test_softmaxcrossentropy_ignore_index(self): - x = torch.randn(3, 5) - y = torch.empty(3, dtype=torch.long).random_(5) - self.assertONNX( - torch.nn.CrossEntropyLoss(ignore_index=1), (x, y), opset_version=12 - ) - - def test_softmaxcrossentropy_weights(self): - x = torch.randn(3, 5) - y = torch.empty(3, dtype=torch.long).random_(5) - self.assertONNX( - torch.nn.CrossEntropyLoss(weight=torch.randn(5)), (x, y), opset_version=12 - ) - - def test_softmaxcrossentropy_3d(self): - x = torch.randn(3, 5, 2) - y = torch.empty(3, 2, dtype=torch.long).random_(5) - self.assertONNX(torch.nn.CrossEntropyLoss(), (x, y), opset_version=12) - - def test_softmaxcrossentropy_3d_none(self): - x = torch.randn(3, 5, 2) - y = torch.empty(3, 2, dtype=torch.long).random_(5) - self.assertONNX( - torch.nn.CrossEntropyLoss(reduction="none"), (x, y), opset_version=12 - ) - - def test_softmaxcrossentropy_4d(self): - x = torch.randn(3, 5, 2, 1) - y = torch.empty(3, 2, 1, dtype=torch.long).random_(5) - self.assertONNX(torch.nn.CrossEntropyLoss(), (x, y), opset_version=12) - - def test_lstm_none_sequence_lens(self): - """Test symbolic shape inference for LSTM when the input sequence_lens = None.""" - input = torch.randn(RNN_SEQUENCE_LENGTH, BATCH_SIZE, RNN_INPUT_SIZE) - h0 = torch.randn(1, BATCH_SIZE, RNN_HIDDEN_SIZE) - c0 = torch.randn(1, BATCH_SIZE, RNN_HIDDEN_SIZE) - - class LSTMModel(torch.nn.Module): - def __init__(self) -> None: - super().__init__() - self.rnn = torch.nn.LSTM( - RNN_INPUT_SIZE, RNN_HIDDEN_SIZE, 1, bidirectional=False - ) - - def forward(self, x, h0, c0): - a, b = self.rnn(x, (h0, c0)) - return torch.ones(b[0].shape) - - self.assertONNX( - LSTMModel(), - (input, h0, c0), - input_names=["x", "y"], - dynamic_axes={"x": {0: "batch"}}, - opset_version=12, - ) - - def test_dynamic_axes_add(self): - m1 = torch.randn(2, 3, requires_grad=True) - m2 = torch.randn(2, 1, requires_grad=True) - self.assertONNX( - lambda x, y: torch.add(x, y), - (m1, m2), - input_names=["input_1", "input_2"], - dynamic_axes={"input_1": {1: "dim_1"}, "input_2": {1: "dim_2"}}, - opset_version=12, - ) - - def test_dynamic_axes_add_inputs_same_symbolic_shape(self): - m1 = torch.randn(2, 3, requires_grad=True) - self.assertONNX( - lambda x: torch.add(x, x), - (m1,), - input_names=["input_1"], - dynamic_axes={"input_1": {1: "dim_1"}}, - opset_version=12, - ) - - def test_dynamic_axes_matmul(self): - m1 = torch.randn(2, 2, 4, requires_grad=True) - m2 = torch.randn(2, 4, 3, requires_grad=True) - self.assertONNX( - lambda x, y: torch.matmul(x, y), - (m1, m2), - input_names=["input_1", "input_2"], - dynamic_axes={"input_1": {1: "dim_0"}, "input_2": {2: "dim_1"}}, - opset_version=12, - ) - - def test_dynamic_axes_reduce_mean(self): - m1 = torch.randn(2, 3, 4, requires_grad=True) - self.assertONNX( - lambda x: torch.mean(x, dim=1), - (m1), - input_names=["input"], - dynamic_axes={"input": {1: "dim_1", 2: "dim_2"}}, - opset_version=12, - ) - - def test_dynamic_axes_unchange(self): - """Test ProcessUnchangeNode in symbolic shape inference.""" - m1 = torch.randn(2, 3, requires_grad=True) - self.assertONNX( - lambda x: torch.softmax(x, dim=0), - (m1,), - input_names=["input"], - dynamic_axes={"input": {1: "dim_1"}}, - opset_version=12, - ) - - def test_aten_embedding_1(self): - _onnx_opset_version = 12 - - @parse_args("v", "v", "i", "b", "b") - def embedding(g, weight, indices, padding_idx, scale_grad_by_freq, sparse): - custom_attributes_json = ( - "{" - f'"padding_idx":{str(padding_idx)},' - f'"scale_grad_by_freq":{str(scale_grad_by_freq).lower()},' - f'"sparse":{str(sparse).lower()}' - "}" - ) - output = g.at( - "embedding", - weight, - indices, - custom_attributes_json_s=custom_attributes_json, - ) - return output - - torch.onnx.register_custom_op_symbolic( - "::embedding", embedding, _onnx_opset_version - ) - - class Model(torch.nn.Module): - def __init__(self) -> None: - super().__init__() - self.emb = torch.nn.Embedding(4, 8) - - def forward(self, x, y): - res = self.emb(x) - res = res + y - return torch.ones(res.shape[0]) - - model = Model() - x = torch.ones(32, dtype=torch.long) - y = torch.randn(1, 8) - self.assertONNX(model, (x, y), opset_version=_onnx_opset_version) - - torch.onnx.unregister_custom_op_symbolic("::embedding", _onnx_opset_version) - - # This is test_aten_embedding_1 with shape inference on custom symbolic aten::embedding. - def test_aten_embedding_2(self): - _onnx_opset_version = 12 - - @parse_args("v", "v", "i", "b", "b") - def embedding(g, weight, indices, padding_idx, scale_grad_by_freq, sparse): - custom_attributes_json = ( - "{" - f'"padding_idx":{str(padding_idx)},' - f'"scale_grad_by_freq":{str(scale_grad_by_freq).lower()},' - f'"sparse":{str(sparse).lower()}' - "}" - ) - output = g.at( - "embedding", - weight, - indices, - custom_attributes_json_s=custom_attributes_json, - ) - - # do shape inference and set it via setType - indices_shape = _get_tensor_sizes(indices) - if indices_shape is not None and hasattr(weight.type(), "with_sizes"): - output_type = weight.type().with_sizes( - indices_shape + [_get_tensor_dim_size(weight, 1)] - ) - output.setType(output_type) - return output - - torch.onnx.register_custom_op_symbolic( - "::embedding", embedding, _onnx_opset_version - ) - - class Model(torch.nn.Module): - def __init__(self) -> None: - super().__init__() - self.emb = torch.nn.Embedding(4, 8) - - def forward(self, x, y): - res = self.emb(x) - res = res + y - return torch.ones(res.shape[0]) - - model = Model() - x = torch.ones(32, dtype=torch.long) - y = torch.randn(1, 8) - self.assertONNX( - model, - (x, y), - opset_version=_onnx_opset_version, - input_names=["input_1", "input_2"], - dynamic_axes={"input_1": {0: "dim_0"}, "input_2": {0: "dim_1", 1: "dim_2"}}, - keep_initializers_as_inputs=False, - operator_export_type=torch.onnx.OperatorExportTypes.ONNX_ATEN_FALLBACK, - ) - - torch.onnx.unregister_custom_op_symbolic("::embedding", _onnx_opset_version) - - # Without shapeValueMap, the onnx graph looks like: - # graph(%0 : Float(*, 1, 128, 1, strides=[128, 128, 1, 1], requires_grad=0, device=cpu)): - # %2 : Long(4, strides=[1], device=cpu) = onnx::Shape(%0) - # %4 : Long(device=cpu) = onnx::Constant[value={0}]() - # %5 : Long(device=cpu) = onnx::Gather[axis=0](%2, %4) - # %6 : Long(device=cpu) = onnx::Constant[value={1}]() - # %7 : Long(device=cpu) = onnx::Constant[value={2}]() - # %8 : Long(device=cpu) = onnx::Constant[value={-1}]() - # %9 : int[] = prim::ListConstruct(%5, %6, %7, %8) - # %10 : Float(*, *, *, *, strides=[128, 128, 64, 1], requires_grad=0, device=cpu) = onnx::Reshape(%0, %9) - # ... - # With shapeValueMap, it becomes: - # ... - # %10 : Float(*, 1, 2, 64, strides=[128, 128, 64, 1], requires_grad=0, device=cpu) = onnx::Reshape(%0, %9) - # ... - def test_shape_value_map(self): - class RSoftMax(torch.nn.Module): - def __init__(self, radix, cardinality): - super().__init__() - self.radix = radix - self.cardinality = cardinality - - def forward(self, x): - batch = x.size(0) - x = x.view(batch, self.cardinality, self.radix, -1).transpose(1, 2) - x = F.softmax(x, dim=1) - x = x.reshape(batch, -1) - return x - - radix = 2 - cardinality = 1 - x = torch.randn(10, 1, 128, 1) - self.assertONNX( - RSoftMax(radix, cardinality), - (x,), - input_names=["x"], - dynamic_axes={"x": {0: "dim_0"}}, - ) - - -if __name__ == "__main__": - no_onnx_dep_flag = "--no-onnx" - _onnx_dep = no_onnx_dep_flag not in common_utils.UNITTEST_ARGS - if no_onnx_dep_flag in common_utils.UNITTEST_ARGS: - common_utils.UNITTEST_ARGS.remove(no_onnx_dep_flag) - onnx_test_flag = "--produce-onnx-test-data" - _onnx_test = onnx_test_flag in common_utils.UNITTEST_ARGS - if onnx_test_flag in common_utils.UNITTEST_ARGS: - common_utils.UNITTEST_ARGS.remove(onnx_test_flag) - if _onnx_test: - _onnx_dep = True - import onnx_test_common - - for d in glob.glob( - os.path.join(onnx_test_common.pytorch_operator_dir, "test_operator_*") - ): - shutil.rmtree(d) - common_utils.run_tests()