From 5e06fa0bafb53c1c1a1203c74ddc08209ad87f84 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 8 Dec 2018 01:04:02 -0800 Subject: [PATCH] ONNX changes to use int32_t (instead of enum) to store data type Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/14926 Reviewed By: houseroad Differential Revision: D13390642 Pulled By: bddppq fbshipit-source-id: c2314b24d9384f188fda2b9a5cc16465ad39581e --- .gitmodules | 2 +- caffe2/python/onnx/tests/onnx_backend_test.py | 2 ++ test/onnx/expect/TestOperators.test_acos.expect | 4 ++-- .../expect/TestOperators.test_add_broadcast.expect | 6 +++--- .../TestOperators.test_add_left_broadcast.expect | 6 +++--- .../TestOperators.test_add_size1_broadcast.expect | 6 +++--- ...Operators.test_add_size1_right_broadcast.expect | 6 +++--- ...ators.test_add_size1_singleton_broadcast.expect | 6 +++--- .../expect/TestOperators.test_addconstant.expect | 6 +++--- test/onnx/expect/TestOperators.test_addmm.expect | 8 ++++---- test/onnx/expect/TestOperators.test_asin.expect | 4 ++-- test/onnx/expect/TestOperators.test_at_op.expect | 4 ++-- test/onnx/expect/TestOperators.test_atan.expect | 4 ++-- test/onnx/expect/TestOperators.test_basic.expect | 6 +++--- .../expect/TestOperators.test_batchnorm.expect | 24 +++++++++++----------- .../expect/TestOperators.test_batchnorm_1d.expect | 24 +++++++++++----------- .../TestOperators.test_batchnorm_noaffine.expect | 20 +++++++++--------- .../TestOperators.test_batchnorm_training.expect | 24 +++++++++++----------- test/onnx/expect/TestOperators.test_chunk.expect | 6 +++--- test/onnx/expect/TestOperators.test_clip.expect | 4 ++-- .../onnx/expect/TestOperators.test_clip_max.expect | 4 ++-- .../onnx/expect/TestOperators.test_clip_min.expect | 4 ++-- test/onnx/expect/TestOperators.test_concat2.expect | 6 +++--- test/onnx/expect/TestOperators.test_conv.expect | 8 ++++---- .../expect/TestOperators.test_convtranspose.expect | 8 ++++---- test/onnx/expect/TestOperators.test_cos.expect | 4 ++-- test/onnx/expect/TestOperators.test_elu.expect | 4 ++-- .../TestOperators.test_embedding_bags.expect | 10 ++++----- test/onnx/expect/TestOperators.test_equal.expect | 6 +++--- test/onnx/expect/TestOperators.test_exp.expect | 4 ++-- test/onnx/expect/TestOperators.test_flatten.expect | 12 +++++------ test/onnx/expect/TestOperators.test_full.expect | 8 ++++---- test/onnx/expect/TestOperators.test_ge.expect | 6 +++--- test/onnx/expect/TestOperators.test_gt.expect | 6 +++--- .../onnx/expect/TestOperators.test_hardtanh.expect | 4 ++-- .../TestOperators.test_implicit_expand.expect | 6 +++--- test/onnx/expect/TestOperators.test_index.expect | 6 +++--- test/onnx/expect/TestOperators.test_le.expect | 6 +++--- test/onnx/expect/TestOperators.test_linear.expect | 12 +++++------ .../expect/TestOperators.test_log_sigmoid.expect | 4 ++-- .../expect/TestOperators.test_logsoftmax.expect | 4 ++-- test/onnx/expect/TestOperators.test_lt.expect | 6 +++--- test/onnx/expect/TestOperators.test_max.expect | 6 +++--- test/onnx/expect/TestOperators.test_maxpool.expect | 4 ++-- test/onnx/expect/TestOperators.test_mean.expect | 4 ++-- test/onnx/expect/TestOperators.test_min.expect | 6 +++--- test/onnx/expect/TestOperators.test_mm.expect | 8 ++++---- test/onnx/expect/TestOperators.test_norm.expect | 4 ++-- test/onnx/expect/TestOperators.test_pad.expect | 4 ++-- test/onnx/expect/TestOperators.test_params.expect | 8 ++++---- .../onnx/expect/TestOperators.test_permute2.expect | 4 ++-- test/onnx/expect/TestOperators.test_pow.expect | 6 +++--- test/onnx/expect/TestOperators.test_prod.expect | 4 ++-- test/onnx/expect/TestOperators.test_randn.expect | 4 ++-- ...erators.test_reduce_sum_negative_indices.expect | 4 ++-- .../expect/TestOperators.test_reduced_mean.expect | 4 ++-- .../TestOperators.test_reduced_mean_keepdim.expect | 4 ++-- .../expect/TestOperators.test_reduced_prod.expect | 4 ++-- .../TestOperators.test_reduced_prod_keepdim.expect | 4 ++-- .../expect/TestOperators.test_reduced_sum.expect | 4 ++-- .../TestOperators.test_reduced_sum_keepdim.expect | 4 ++-- test/onnx/expect/TestOperators.test_repeat.expect | 6 +++--- .../TestOperators.test_repeat_dim_overflow.expect | 8 ++++---- test/onnx/expect/TestOperators.test_rrelu.expect | 4 ++-- test/onnx/expect/TestOperators.test_rsub.expect | 6 +++--- test/onnx/expect/TestOperators.test_selu.expect | 4 ++-- test/onnx/expect/TestOperators.test_sin.expect | 4 ++-- test/onnx/expect/TestOperators.test_slice.expect | 4 ++-- test/onnx/expect/TestOperators.test_sqrt.expect | 4 ++-- test/onnx/expect/TestOperators.test_sum.expect | 4 ++-- test/onnx/expect/TestOperators.test_tan.expect | 4 ++-- .../expect/TestOperators.test_transpose.expect | 4 ++-- test/onnx/expect/TestOperators.test_type_as.expect | 4 ++-- .../expect/TestOperators.test_unsqueeze.expect | 4 ++-- .../onnx/expect/TestOperators.test_upsample.expect | 6 +++--- test/onnx/expect/TestOperators.test_view.expect | 4 ++-- third_party/onnx | 2 +- third_party/onnx-tensorrt | 2 +- 78 files changed, 238 insertions(+), 236 deletions(-) diff --git a/.gitmodules b/.gitmodules index 26f15c9..d32edbf 100644 --- a/.gitmodules +++ b/.gitmodules @@ -60,7 +60,7 @@ url = https://github.com/onnx/onnx.git [submodule "third_party/onnx-tensorrt"] path = third_party/onnx-tensorrt - url = https://github.com/onnx/onnx-tensorrt + url = https://github.com/bddppq/onnx-tensorrt [submodule "third_party/sleef"] path = third_party/sleef url = https://github.com/shibatch/sleef diff --git a/caffe2/python/onnx/tests/onnx_backend_test.py b/caffe2/python/onnx/tests/onnx_backend_test.py index 1304a3f..df51c5f 100644 --- a/caffe2/python/onnx/tests/onnx_backend_test.py +++ b/caffe2/python/onnx/tests/onnx_backend_test.py @@ -47,6 +47,8 @@ backend_test.exclude(r'(test_hardsigmoid' # Does not support Hardsigmoid. '|test_onehot.*' # Needs implementation '|test_scan.*' # Needs implementation '|test_erf.*' # Needs implementation + '|test_isnan.*' # Needs implementation + '|test_scatter.*' # Should be similar to ScatterAssign ')') # Quick patch to unbreak master CI, is working on the debugging. diff --git a/test/onnx/expect/TestOperators.test_acos.expect b/test/onnx/expect/TestOperators.test_acos.expect index acecfeb..8191d5b 100644 --- a/test/onnx/expect/TestOperators.test_acos.expect +++ b/test/onnx/expect/TestOperators.test_acos.expect @@ -12,7 +12,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -28,7 +28,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_add_broadcast.expect b/test/onnx/expect/TestOperators.test_add_broadcast.expect index 4062b9e..8c01251 100644 --- a/test/onnx/expect/TestOperators.test_add_broadcast.expect +++ b/test/onnx/expect/TestOperators.test_add_broadcast.expect @@ -13,7 +13,7 @@ graph { name: "0" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 2 @@ -29,7 +29,7 @@ graph { name: "1" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 3 @@ -42,7 +42,7 @@ graph { name: "2" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_add_left_broadcast.expect b/test/onnx/expect/TestOperators.test_add_left_broadcast.expect index b78cf56..897511d 100644 --- a/test/onnx/expect/TestOperators.test_add_left_broadcast.expect +++ b/test/onnx/expect/TestOperators.test_add_left_broadcast.expect @@ -13,7 +13,7 @@ graph { name: "0" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 3 @@ -26,7 +26,7 @@ graph { name: "1" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 2 @@ -42,7 +42,7 @@ graph { name: "2" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_add_size1_broadcast.expect b/test/onnx/expect/TestOperators.test_add_size1_broadcast.expect index 181800f..006d13e 100644 --- a/test/onnx/expect/TestOperators.test_add_size1_broadcast.expect +++ b/test/onnx/expect/TestOperators.test_add_size1_broadcast.expect @@ -13,7 +13,7 @@ graph { name: "0" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 2 @@ -29,7 +29,7 @@ graph { name: "1" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 2 @@ -45,7 +45,7 @@ graph { name: "2" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_add_size1_right_broadcast.expect b/test/onnx/expect/TestOperators.test_add_size1_right_broadcast.expect index 4062b9e..8c01251 100644 --- a/test/onnx/expect/TestOperators.test_add_size1_right_broadcast.expect +++ b/test/onnx/expect/TestOperators.test_add_size1_right_broadcast.expect @@ -13,7 +13,7 @@ graph { name: "0" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 2 @@ -29,7 +29,7 @@ graph { name: "1" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 3 @@ -42,7 +42,7 @@ graph { name: "2" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_add_size1_singleton_broadcast.expect b/test/onnx/expect/TestOperators.test_add_size1_singleton_broadcast.expect index 19557dc..48f7cb4 100644 --- a/test/onnx/expect/TestOperators.test_add_size1_singleton_broadcast.expect +++ b/test/onnx/expect/TestOperators.test_add_size1_singleton_broadcast.expect @@ -13,7 +13,7 @@ graph { name: "0" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 2 @@ -29,7 +29,7 @@ graph { name: "1" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 1 @@ -45,7 +45,7 @@ graph { name: "2" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_addconstant.expect b/test/onnx/expect/TestOperators.test_addconstant.expect index 5657e67..1a4453e 100644 --- a/test/onnx/expect/TestOperators.test_addconstant.expect +++ b/test/onnx/expect/TestOperators.test_addconstant.expect @@ -8,7 +8,7 @@ graph { attribute { name: "value" t { - data_type: DOUBLE + data_type: 11 raw_data: "\000\000\000\000\000\000\360?" } type: TENSOR @@ -25,7 +25,7 @@ graph { name: "0" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 2 @@ -41,7 +41,7 @@ graph { name: "2" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_addmm.expect b/test/onnx/expect/TestOperators.test_addmm.expect index deb017b..104bf85 100644 --- a/test/onnx/expect/TestOperators.test_addmm.expect +++ b/test/onnx/expect/TestOperators.test_addmm.expect @@ -41,7 +41,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -57,7 +57,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -73,7 +73,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 4 @@ -86,7 +86,7 @@ graph { name: "4" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_asin.expect b/test/onnx/expect/TestOperators.test_asin.expect index 230374f..d4413a9 100644 --- a/test/onnx/expect/TestOperators.test_asin.expect +++ b/test/onnx/expect/TestOperators.test_asin.expect @@ -12,7 +12,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -28,7 +28,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_at_op.expect b/test/onnx/expect/TestOperators.test_at_op.expect index 988bc1d..a13d3c8 100644 --- a/test/onnx/expect/TestOperators.test_at_op.expect +++ b/test/onnx/expect/TestOperators.test_at_op.expect @@ -18,7 +18,7 @@ graph { name: "x" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -34,7 +34,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_atan.expect b/test/onnx/expect/TestOperators.test_atan.expect index 6b5f717..1678aaa 100644 --- a/test/onnx/expect/TestOperators.test_atan.expect +++ b/test/onnx/expect/TestOperators.test_atan.expect @@ -12,7 +12,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -28,7 +28,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_basic.expect b/test/onnx/expect/TestOperators.test_basic.expect index be9eb46..e3b8a7b 100644 --- a/test/onnx/expect/TestOperators.test_basic.expect +++ b/test/onnx/expect/TestOperators.test_basic.expect @@ -34,7 +34,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -47,7 +47,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -60,7 +60,7 @@ graph { name: "6" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_batchnorm.expect b/test/onnx/expect/TestOperators.test_batchnorm.expect index 2a39db9..71cde5d 100644 --- a/test/onnx/expect/TestOperators.test_batchnorm.expect +++ b/test/onnx/expect/TestOperators.test_batchnorm.expect @@ -24,30 +24,30 @@ graph { name: "torch-jit-export" initializer { dims: 2 - data_type: FLOAT + data_type: 1 name: "1" raw_data: "\340e\355<\246\305\315>" } initializer { dims: 2 - data_type: FLOAT + data_type: 1 name: "2" raw_data: "\000\000\000\000\000\000\000\000" } initializer { dims: 2 - data_type: FLOAT + data_type: 1 name: "3" raw_data: "\000\000\000\000\000\000\000\000" } initializer { dims: 2 - data_type: FLOAT + data_type: 1 name: "4" raw_data: "\000\000\200?\000\000\200?" } initializer { - data_type: INT64 + data_type: 7 name: "5" raw_data: "\000\000\000\000\000\000\000\000" } @@ -55,7 +55,7 @@ graph { name: "input" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -77,7 +77,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -90,7 +90,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -103,7 +103,7 @@ graph { name: "3" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -116,7 +116,7 @@ graph { name: "4" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -129,7 +129,7 @@ graph { name: "5" type { tensor_type { - elem_type: INT64 + elem_type: 7 shape { } } @@ -139,7 +139,7 @@ graph { name: "6" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_batchnorm_1d.expect b/test/onnx/expect/TestOperators.test_batchnorm_1d.expect index d6235f8..db09419 100644 --- a/test/onnx/expect/TestOperators.test_batchnorm_1d.expect +++ b/test/onnx/expect/TestOperators.test_batchnorm_1d.expect @@ -44,30 +44,30 @@ graph { name: "torch-jit-export" initializer { dims: 2 - data_type: FLOAT + data_type: 1 name: "1" raw_data: "\340e\355<\246\305\315>" } initializer { dims: 2 - data_type: FLOAT + data_type: 1 name: "2" raw_data: "\000\000\000\000\000\000\000\000" } initializer { dims: 2 - data_type: FLOAT + data_type: 1 name: "3" raw_data: "\000\000\000\000\000\000\000\000" } initializer { dims: 2 - data_type: FLOAT + data_type: 1 name: "4" raw_data: "\000\000\200?\000\000\200?" } initializer { - data_type: INT64 + data_type: 7 name: "5" raw_data: "\000\000\000\000\000\000\000\000" } @@ -75,7 +75,7 @@ graph { name: "input" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -91,7 +91,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -104,7 +104,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -117,7 +117,7 @@ graph { name: "3" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -130,7 +130,7 @@ graph { name: "4" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -143,7 +143,7 @@ graph { name: "5" type { tensor_type { - elem_type: INT64 + elem_type: 7 shape { } } @@ -153,7 +153,7 @@ graph { name: "8" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_batchnorm_noaffine.expect b/test/onnx/expect/TestOperators.test_batchnorm_noaffine.expect index 6c5b5d0..f31ea9e 100644 --- a/test/onnx/expect/TestOperators.test_batchnorm_noaffine.expect +++ b/test/onnx/expect/TestOperators.test_batchnorm_noaffine.expect @@ -9,7 +9,7 @@ graph { name: "value" t { dims: 128 - data_type: FLOAT + 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 @@ -22,7 +22,7 @@ graph { name: "value" t { dims: 128 - data_type: FLOAT + 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 @@ -50,18 +50,18 @@ graph { name: "torch-jit-export" initializer { dims: 128 - data_type: FLOAT + data_type: 1 name: "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" } initializer { dims: 128 - data_type: FLOAT + data_type: 1 name: "2" 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?" } initializer { - data_type: INT64 + data_type: 7 name: "3" raw_data: "\000\000\000\000\000\000\000\000" } @@ -69,7 +69,7 @@ graph { name: "input" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 128 @@ -91,7 +91,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 128 @@ -104,7 +104,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 128 @@ -117,7 +117,7 @@ graph { name: "3" type { tensor_type { - elem_type: INT64 + elem_type: 7 shape { } } @@ -127,7 +127,7 @@ graph { name: "6" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 128 diff --git a/test/onnx/expect/TestOperators.test_batchnorm_training.expect b/test/onnx/expect/TestOperators.test_batchnorm_training.expect index ec7a240..474e0f0 100644 --- a/test/onnx/expect/TestOperators.test_batchnorm_training.expect +++ b/test/onnx/expect/TestOperators.test_batchnorm_training.expect @@ -28,30 +28,30 @@ graph { name: "torch-jit-export" initializer { dims: 2 - data_type: FLOAT + data_type: 1 name: "1" raw_data: "\340e\355<\246\305\315>" } initializer { dims: 2 - data_type: FLOAT + data_type: 1 name: "2" raw_data: "\000\000\000\000\000\000\000\000" } initializer { dims: 2 - data_type: FLOAT + data_type: 1 name: "3" raw_data: "\315\314\314=\315\314\314=" } initializer { dims: 2 - data_type: FLOAT + data_type: 1 name: "4" raw_data: "fff?fff?" } initializer { - data_type: INT64 + data_type: 7 name: "5" raw_data: "\001\000\000\000\000\000\000\000" } @@ -59,7 +59,7 @@ graph { name: "input" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -81,7 +81,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -94,7 +94,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -107,7 +107,7 @@ graph { name: "3" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -120,7 +120,7 @@ graph { name: "4" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -133,7 +133,7 @@ graph { name: "5" type { tensor_type { - elem_type: INT64 + elem_type: 7 shape { } } @@ -143,7 +143,7 @@ graph { name: "6" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_chunk.expect b/test/onnx/expect/TestOperators.test_chunk.expect index cb31cfc..155f4ce 100644 --- a/test/onnx/expect/TestOperators.test_chunk.expect +++ b/test/onnx/expect/TestOperators.test_chunk.expect @@ -24,7 +24,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -37,7 +37,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -50,7 +50,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_clip.expect b/test/onnx/expect/TestOperators.test_clip.expect index 6a2d3e5..8ab0c88 100644 --- a/test/onnx/expect/TestOperators.test_clip.expect +++ b/test/onnx/expect/TestOperators.test_clip.expect @@ -22,7 +22,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -38,7 +38,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_clip_max.expect b/test/onnx/expect/TestOperators.test_clip_max.expect index 48f3ddc..9f1eb75 100644 --- a/test/onnx/expect/TestOperators.test_clip_max.expect +++ b/test/onnx/expect/TestOperators.test_clip_max.expect @@ -17,7 +17,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -39,7 +39,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_clip_min.expect b/test/onnx/expect/TestOperators.test_clip_min.expect index 55516c3..331b06f 100644 --- a/test/onnx/expect/TestOperators.test_clip_min.expect +++ b/test/onnx/expect/TestOperators.test_clip_min.expect @@ -17,7 +17,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -39,7 +39,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_concat2.expect b/test/onnx/expect/TestOperators.test_concat2.expect index 3efe305..5971ed7 100644 --- a/test/onnx/expect/TestOperators.test_concat2.expect +++ b/test/onnx/expect/TestOperators.test_concat2.expect @@ -18,7 +18,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -34,7 +34,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -50,7 +50,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_conv.expect b/test/onnx/expect/TestOperators.test_conv.expect index 9e0962e..8fbe66b 100644 --- a/test/onnx/expect/TestOperators.test_conv.expect +++ b/test/onnx/expect/TestOperators.test_conv.expect @@ -45,7 +45,7 @@ graph { dims: 16 dims: 3 dims: 3 - data_type: FLOAT + data_type: 1 name: "1" 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" } @@ -53,7 +53,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 20 @@ -75,7 +75,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 13 @@ -97,7 +97,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 20 diff --git a/test/onnx/expect/TestOperators.test_convtranspose.expect b/test/onnx/expect/TestOperators.test_convtranspose.expect index a9605fc..a15b91c 100644 --- a/test/onnx/expect/TestOperators.test_convtranspose.expect +++ b/test/onnx/expect/TestOperators.test_convtranspose.expect @@ -51,7 +51,7 @@ graph { dims: 3 dims: 3 dims: 3 - data_type: FLOAT + data_type: 1 name: "1" 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" } @@ -59,7 +59,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -81,7 +81,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -103,7 +103,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_cos.expect b/test/onnx/expect/TestOperators.test_cos.expect index db4ddeb..eab4b50 100644 --- a/test/onnx/expect/TestOperators.test_cos.expect +++ b/test/onnx/expect/TestOperators.test_cos.expect @@ -12,7 +12,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -28,7 +28,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_elu.expect b/test/onnx/expect/TestOperators.test_elu.expect index a2aa0b3..547a3d9 100644 --- a/test/onnx/expect/TestOperators.test_elu.expect +++ b/test/onnx/expect/TestOperators.test_elu.expect @@ -17,7 +17,7 @@ graph { name: "input" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -39,7 +39,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_embedding_bags.expect b/test/onnx/expect/TestOperators.test_embedding_bags.expect index b3fec4e..b7a3600 100644 --- a/test/onnx/expect/TestOperators.test_embedding_bags.expect +++ b/test/onnx/expect/TestOperators.test_embedding_bags.expect @@ -36,7 +36,7 @@ graph { initializer { dims: 10 dims: 8 - data_type: FLOAT + data_type: 1 name: "2" 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?" } @@ -44,7 +44,7 @@ graph { name: "input" type { tensor_type { - elem_type: INT64 + elem_type: 7 shape { dim { dim_value: 4 @@ -57,7 +57,7 @@ graph { name: "offsets" type { tensor_type { - elem_type: INT64 + elem_type: 7 shape { dim { dim_value: 1 @@ -70,7 +70,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 10 @@ -86,7 +86,7 @@ graph { name: "3" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_equal.expect b/test/onnx/expect/TestOperators.test_equal.expect index 1577dae..c511737 100644 --- a/test/onnx/expect/TestOperators.test_equal.expect +++ b/test/onnx/expect/TestOperators.test_equal.expect @@ -13,7 +13,7 @@ graph { name: "0" type { tensor_type { - elem_type: INT32 + elem_type: 6 shape { dim { dim_value: 1 @@ -35,7 +35,7 @@ graph { name: "1" type { tensor_type { - elem_type: INT32 + elem_type: 6 shape { dim { dim_value: 1 @@ -51,7 +51,7 @@ graph { name: "2" type { tensor_type { - elem_type: UINT8 + elem_type: 2 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_exp.expect b/test/onnx/expect/TestOperators.test_exp.expect index 5536e52..5795e5e 100644 --- a/test/onnx/expect/TestOperators.test_exp.expect +++ b/test/onnx/expect/TestOperators.test_exp.expect @@ -12,7 +12,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -28,7 +28,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_flatten.expect b/test/onnx/expect/TestOperators.test_flatten.expect index f127eeb..f30a902 100644 --- a/test/onnx/expect/TestOperators.test_flatten.expect +++ b/test/onnx/expect/TestOperators.test_flatten.expect @@ -8,7 +8,7 @@ graph { attribute { name: "value" t { - data_type: INT64 + data_type: 7 raw_data: "\000\000\000\000\000\000\000\000" } type: TENSOR @@ -36,7 +36,7 @@ graph { attribute { name: "value" t { - data_type: INT64 + data_type: 7 raw_data: "\000\000\000\000\000\000\000\000" } type: TENSOR @@ -74,7 +74,7 @@ graph { attribute { name: "value" t { - data_type: DOUBLE + data_type: 11 raw_data: "\000\000\000\000\000\000\360?" } type: TENSOR @@ -92,7 +92,7 @@ graph { attribute { name: "value" t { - data_type: DOUBLE + data_type: 11 raw_data: "\000\000\000\000\000\0008@" } type: TENSOR @@ -156,7 +156,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -178,7 +178,7 @@ graph { name: "16" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_full.expect b/test/onnx/expect/TestOperators.test_full.expect index db97532..455d5bb 100644 --- a/test/onnx/expect/TestOperators.test_full.expect +++ b/test/onnx/expect/TestOperators.test_full.expect @@ -8,7 +8,7 @@ graph { attribute { name: "value" t { - data_type: INT64 + data_type: 7 raw_data: "\000\000\000\000\000\000\000\000" } type: TENSOR @@ -36,7 +36,7 @@ graph { attribute { name: "value" t { - data_type: INT64 + data_type: 7 raw_data: "\001\000\000\000\000\000\000\000" } type: TENSOR @@ -114,7 +114,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -130,7 +130,7 @@ graph { name: "10" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_ge.expect b/test/onnx/expect/TestOperators.test_ge.expect index f11abcc..a66c5f4 100644 --- a/test/onnx/expect/TestOperators.test_ge.expect +++ b/test/onnx/expect/TestOperators.test_ge.expect @@ -18,7 +18,7 @@ graph { name: "0" type { tensor_type { - elem_type: INT32 + elem_type: 6 shape { dim { dim_value: 3 @@ -34,7 +34,7 @@ graph { name: "1" type { tensor_type { - elem_type: INT32 + elem_type: 6 shape { dim { dim_value: 3 @@ -50,7 +50,7 @@ graph { name: "3" type { tensor_type { - elem_type: UINT8 + elem_type: 2 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_gt.expect b/test/onnx/expect/TestOperators.test_gt.expect index ab107f9..7680e0a 100644 --- a/test/onnx/expect/TestOperators.test_gt.expect +++ b/test/onnx/expect/TestOperators.test_gt.expect @@ -13,7 +13,7 @@ graph { name: "0" type { tensor_type { - elem_type: INT32 + elem_type: 6 shape { dim { dim_value: 1 @@ -35,7 +35,7 @@ graph { name: "1" type { tensor_type { - elem_type: INT32 + elem_type: 6 shape { dim { dim_value: 1 @@ -51,7 +51,7 @@ graph { name: "2" type { tensor_type { - elem_type: UINT8 + elem_type: 2 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_hardtanh.expect b/test/onnx/expect/TestOperators.test_hardtanh.expect index 1cb9a6b..91c8c0f 100644 --- a/test/onnx/expect/TestOperators.test_hardtanh.expect +++ b/test/onnx/expect/TestOperators.test_hardtanh.expect @@ -22,7 +22,7 @@ graph { name: "input" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -38,7 +38,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_implicit_expand.expect b/test/onnx/expect/TestOperators.test_implicit_expand.expect index 0633f5d..c5b583c 100644 --- a/test/onnx/expect/TestOperators.test_implicit_expand.expect +++ b/test/onnx/expect/TestOperators.test_implicit_expand.expect @@ -8,7 +8,7 @@ graph { attribute { name: "value" t { - data_type: FLOAT + data_type: 1 raw_data: "\000\000\200?" } type: TENSOR @@ -25,7 +25,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -41,7 +41,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_index.expect b/test/onnx/expect/TestOperators.test_index.expect index 5772447..f140ba8 100644 --- a/test/onnx/expect/TestOperators.test_index.expect +++ b/test/onnx/expect/TestOperators.test_index.expect @@ -8,7 +8,7 @@ graph { attribute { name: "value" t { - data_type: INT64 + data_type: 7 raw_data: "\000\000\000\000\000\000\000\000" } type: TENSOR @@ -30,7 +30,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -46,7 +46,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_le.expect b/test/onnx/expect/TestOperators.test_le.expect index b50002e..0b17740 100644 --- a/test/onnx/expect/TestOperators.test_le.expect +++ b/test/onnx/expect/TestOperators.test_le.expect @@ -18,7 +18,7 @@ graph { name: "0" type { tensor_type { - elem_type: INT32 + elem_type: 6 shape { dim { dim_value: 3 @@ -34,7 +34,7 @@ graph { name: "1" type { tensor_type { - elem_type: INT32 + elem_type: 6 shape { dim { dim_value: 3 @@ -50,7 +50,7 @@ graph { name: "3" type { tensor_type { - elem_type: UINT8 + elem_type: 2 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_linear.expect b/test/onnx/expect/TestOperators.test_linear.expect index bb8902e..fd0fb2c 100644 --- a/test/onnx/expect/TestOperators.test_linear.expect +++ b/test/onnx/expect/TestOperators.test_linear.expect @@ -28,13 +28,13 @@ graph { initializer { dims: 5 dims: 4 - data_type: FLOAT + data_type: 1 name: "1" 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: FLOAT + data_type: 1 name: "2" raw_data: "\324BO\276@\245T>\350\377\245\275\374u\336\276&\212\304>" } @@ -42,7 +42,7 @@ graph { name: "input" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -58,7 +58,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 5 @@ -74,7 +74,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 5 @@ -87,7 +87,7 @@ graph { name: "3" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_log_sigmoid.expect b/test/onnx/expect/TestOperators.test_log_sigmoid.expect index d09c473..1f23d63 100644 --- a/test/onnx/expect/TestOperators.test_log_sigmoid.expect +++ b/test/onnx/expect/TestOperators.test_log_sigmoid.expect @@ -17,7 +17,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -39,7 +39,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_logsoftmax.expect b/test/onnx/expect/TestOperators.test_logsoftmax.expect index ccfbf31..04227b1 100644 --- a/test/onnx/expect/TestOperators.test_logsoftmax.expect +++ b/test/onnx/expect/TestOperators.test_logsoftmax.expect @@ -17,7 +17,7 @@ graph { name: "input" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -39,7 +39,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_lt.expect b/test/onnx/expect/TestOperators.test_lt.expect index 901aa61..a5c6740 100644 --- a/test/onnx/expect/TestOperators.test_lt.expect +++ b/test/onnx/expect/TestOperators.test_lt.expect @@ -13,7 +13,7 @@ graph { name: "0" type { tensor_type { - elem_type: INT32 + elem_type: 6 shape { dim { dim_value: 1 @@ -35,7 +35,7 @@ graph { name: "1" type { tensor_type { - elem_type: INT32 + elem_type: 6 shape { dim { dim_value: 1 @@ -51,7 +51,7 @@ graph { name: "2" type { tensor_type { - elem_type: UINT8 + elem_type: 2 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_max.expect b/test/onnx/expect/TestOperators.test_max.expect index 62378fb..dccab97 100644 --- a/test/onnx/expect/TestOperators.test_max.expect +++ b/test/onnx/expect/TestOperators.test_max.expect @@ -13,7 +13,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -29,7 +29,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -45,7 +45,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_maxpool.expect b/test/onnx/expect/TestOperators.test_maxpool.expect index 92b93a8..a20a4d7 100644 --- a/test/onnx/expect/TestOperators.test_maxpool.expect +++ b/test/onnx/expect/TestOperators.test_maxpool.expect @@ -28,7 +28,7 @@ graph { name: "input" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 20 @@ -47,7 +47,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 20 diff --git a/test/onnx/expect/TestOperators.test_mean.expect b/test/onnx/expect/TestOperators.test_mean.expect index 5476ca2..5af1986 100644 --- a/test/onnx/expect/TestOperators.test_mean.expect +++ b/test/onnx/expect/TestOperators.test_mean.expect @@ -17,7 +17,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -39,7 +39,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { } } diff --git a/test/onnx/expect/TestOperators.test_min.expect b/test/onnx/expect/TestOperators.test_min.expect index 7b66f36..116fbd7 100644 --- a/test/onnx/expect/TestOperators.test_min.expect +++ b/test/onnx/expect/TestOperators.test_min.expect @@ -13,7 +13,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -29,7 +29,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -45,7 +45,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_mm.expect b/test/onnx/expect/TestOperators.test_mm.expect index 0dcede4..6c70a1d 100644 --- a/test/onnx/expect/TestOperators.test_mm.expect +++ b/test/onnx/expect/TestOperators.test_mm.expect @@ -9,7 +9,7 @@ graph { name: "value" t { dims: 1 - data_type: FLOAT + data_type: 1 raw_data: "\000\000\000\000" } type: TENSOR @@ -37,7 +37,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -53,7 +53,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -69,7 +69,7 @@ graph { name: "3" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_norm.expect b/test/onnx/expect/TestOperators.test_norm.expect index 6508373..ec9a7e6 100644 --- a/test/onnx/expect/TestOperators.test_norm.expect +++ b/test/onnx/expect/TestOperators.test_norm.expect @@ -22,7 +22,7 @@ graph { name: "self" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -44,7 +44,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_pad.expect b/test/onnx/expect/TestOperators.test_pad.expect index 52b4173..9ef872e 100644 --- a/test/onnx/expect/TestOperators.test_pad.expect +++ b/test/onnx/expect/TestOperators.test_pad.expect @@ -29,7 +29,7 @@ graph { name: "input" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -51,7 +51,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_params.expect b/test/onnx/expect/TestOperators.test_params.expect index 91b6431..e0a5d00 100644 --- a/test/onnx/expect/TestOperators.test_params.expect +++ b/test/onnx/expect/TestOperators.test_params.expect @@ -33,7 +33,7 @@ graph { initializer { dims: 2 dims: 2 - data_type: FLOAT + data_type: 1 name: "1" raw_data: "\000\000\200?\000\000\000@\000\000@@\000\000\200@" } @@ -41,7 +41,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -57,7 +57,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -73,7 +73,7 @@ graph { name: "6" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_permute2.expect b/test/onnx/expect/TestOperators.test_permute2.expect index d20f35b..2058a6e 100644 --- a/test/onnx/expect/TestOperators.test_permute2.expect +++ b/test/onnx/expect/TestOperators.test_permute2.expect @@ -22,7 +22,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -50,7 +50,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_pow.expect b/test/onnx/expect/TestOperators.test_pow.expect index 49bec07..a333a75 100644 --- a/test/onnx/expect/TestOperators.test_pow.expect +++ b/test/onnx/expect/TestOperators.test_pow.expect @@ -13,7 +13,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -35,7 +35,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -57,7 +57,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_prod.expect b/test/onnx/expect/TestOperators.test_prod.expect index 235dde0..471bb30 100644 --- a/test/onnx/expect/TestOperators.test_prod.expect +++ b/test/onnx/expect/TestOperators.test_prod.expect @@ -17,7 +17,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -39,7 +39,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { } } diff --git a/test/onnx/expect/TestOperators.test_randn.expect b/test/onnx/expect/TestOperators.test_randn.expect index 400b891..d10d636 100644 --- a/test/onnx/expect/TestOperators.test_randn.expect +++ b/test/onnx/expect/TestOperators.test_randn.expect @@ -25,7 +25,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -47,7 +47,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_reduce_sum_negative_indices.expect b/test/onnx/expect/TestOperators.test_reduce_sum_negative_indices.expect index 8a8c6d8..b62eb42 100644 --- a/test/onnx/expect/TestOperators.test_reduce_sum_negative_indices.expect +++ b/test/onnx/expect/TestOperators.test_reduce_sum_negative_indices.expect @@ -22,7 +22,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -38,7 +38,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_reduced_mean.expect b/test/onnx/expect/TestOperators.test_reduced_mean.expect index 6c84680..dd4a6bb 100644 --- a/test/onnx/expect/TestOperators.test_reduced_mean.expect +++ b/test/onnx/expect/TestOperators.test_reduced_mean.expect @@ -22,7 +22,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -44,7 +44,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_reduced_mean_keepdim.expect b/test/onnx/expect/TestOperators.test_reduced_mean_keepdim.expect index dd4cbb9..b0bf203 100644 --- a/test/onnx/expect/TestOperators.test_reduced_mean_keepdim.expect +++ b/test/onnx/expect/TestOperators.test_reduced_mean_keepdim.expect @@ -22,7 +22,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -44,7 +44,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_reduced_prod.expect b/test/onnx/expect/TestOperators.test_reduced_prod.expect index 3dbabb1..fe0720f 100644 --- a/test/onnx/expect/TestOperators.test_reduced_prod.expect +++ b/test/onnx/expect/TestOperators.test_reduced_prod.expect @@ -22,7 +22,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -44,7 +44,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_reduced_prod_keepdim.expect b/test/onnx/expect/TestOperators.test_reduced_prod_keepdim.expect index fe61221..8ed59f5 100644 --- a/test/onnx/expect/TestOperators.test_reduced_prod_keepdim.expect +++ b/test/onnx/expect/TestOperators.test_reduced_prod_keepdim.expect @@ -22,7 +22,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -44,7 +44,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_reduced_sum.expect b/test/onnx/expect/TestOperators.test_reduced_sum.expect index b42d577..e6ab140 100644 --- a/test/onnx/expect/TestOperators.test_reduced_sum.expect +++ b/test/onnx/expect/TestOperators.test_reduced_sum.expect @@ -22,7 +22,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -44,7 +44,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_reduced_sum_keepdim.expect b/test/onnx/expect/TestOperators.test_reduced_sum_keepdim.expect index 9e238ad..bf8a5ab 100644 --- a/test/onnx/expect/TestOperators.test_reduced_sum_keepdim.expect +++ b/test/onnx/expect/TestOperators.test_reduced_sum_keepdim.expect @@ -22,7 +22,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -44,7 +44,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_repeat.expect b/test/onnx/expect/TestOperators.test_repeat.expect index d8e9337..dd69b11 100644 --- a/test/onnx/expect/TestOperators.test_repeat.expect +++ b/test/onnx/expect/TestOperators.test_repeat.expect @@ -9,7 +9,7 @@ graph { name: "value" t { dims: 4 - data_type: INT64 + 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 @@ -26,7 +26,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -48,7 +48,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_repeat_dim_overflow.expect b/test/onnx/expect/TestOperators.test_repeat_dim_overflow.expect index 235a5a1..aab6900 100644 --- a/test/onnx/expect/TestOperators.test_repeat_dim_overflow.expect +++ b/test/onnx/expect/TestOperators.test_repeat_dim_overflow.expect @@ -9,7 +9,7 @@ graph { name: "value" t { dims: 4 - data_type: INT64 + 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 @@ -22,7 +22,7 @@ graph { name: "value" t { dims: 4 - data_type: INT64 + data_type: 7 raw_data: "\001\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000" } type: TENSOR @@ -45,7 +45,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -61,7 +61,7 @@ graph { name: "4" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_rrelu.expect b/test/onnx/expect/TestOperators.test_rrelu.expect index f0fe234..cbfe044 100644 --- a/test/onnx/expect/TestOperators.test_rrelu.expect +++ b/test/onnx/expect/TestOperators.test_rrelu.expect @@ -28,7 +28,7 @@ graph { name: "input" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -50,7 +50,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_rsub.expect b/test/onnx/expect/TestOperators.test_rsub.expect index b93d2da..dca90da 100644 --- a/test/onnx/expect/TestOperators.test_rsub.expect +++ b/test/onnx/expect/TestOperators.test_rsub.expect @@ -8,7 +8,7 @@ graph { attribute { name: "value" t { - data_type: INT64 + data_type: 7 raw_data: "\001\000\000\000\000\000\000\000" } type: TENSOR @@ -25,7 +25,7 @@ graph { name: "x" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 2 @@ -41,7 +41,7 @@ graph { name: "2" type { tensor_type { - elem_type: DOUBLE + elem_type: 11 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_selu.expect b/test/onnx/expect/TestOperators.test_selu.expect index 50d6ba5..5f47cd1 100644 --- a/test/onnx/expect/TestOperators.test_selu.expect +++ b/test/onnx/expect/TestOperators.test_selu.expect @@ -12,7 +12,7 @@ graph { name: "input" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -34,7 +34,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_sin.expect b/test/onnx/expect/TestOperators.test_sin.expect index 32ceff1..dbaece7 100644 --- a/test/onnx/expect/TestOperators.test_sin.expect +++ b/test/onnx/expect/TestOperators.test_sin.expect @@ -12,7 +12,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -28,7 +28,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_slice.expect b/test/onnx/expect/TestOperators.test_slice.expect index 0e24caf..e1b10c1 100644 --- a/test/onnx/expect/TestOperators.test_slice.expect +++ b/test/onnx/expect/TestOperators.test_slice.expect @@ -47,7 +47,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -63,7 +63,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_sqrt.expect b/test/onnx/expect/TestOperators.test_sqrt.expect index 5344a0a..e77e1ca 100644 --- a/test/onnx/expect/TestOperators.test_sqrt.expect +++ b/test/onnx/expect/TestOperators.test_sqrt.expect @@ -12,7 +12,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -28,7 +28,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_sum.expect b/test/onnx/expect/TestOperators.test_sum.expect index caba3c1..fce9ae2 100644 --- a/test/onnx/expect/TestOperators.test_sum.expect +++ b/test/onnx/expect/TestOperators.test_sum.expect @@ -17,7 +17,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -39,7 +39,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { } } diff --git a/test/onnx/expect/TestOperators.test_tan.expect b/test/onnx/expect/TestOperators.test_tan.expect index e36c718..9e5448c 100644 --- a/test/onnx/expect/TestOperators.test_tan.expect +++ b/test/onnx/expect/TestOperators.test_tan.expect @@ -12,7 +12,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -28,7 +28,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_transpose.expect b/test/onnx/expect/TestOperators.test_transpose.expect index 394bb25..3f08a76 100644 --- a/test/onnx/expect/TestOperators.test_transpose.expect +++ b/test/onnx/expect/TestOperators.test_transpose.expect @@ -7,7 +7,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -23,7 +23,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 diff --git a/test/onnx/expect/TestOperators.test_type_as.expect b/test/onnx/expect/TestOperators.test_type_as.expect index bdc6dd4..8b5bb14 100644 --- a/test/onnx/expect/TestOperators.test_type_as.expect +++ b/test/onnx/expect/TestOperators.test_type_as.expect @@ -7,7 +7,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -20,7 +20,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_unsqueeze.expect b/test/onnx/expect/TestOperators.test_unsqueeze.expect index 8ecb431..150f348 100644 --- a/test/onnx/expect/TestOperators.test_unsqueeze.expect +++ b/test/onnx/expect/TestOperators.test_unsqueeze.expect @@ -17,7 +17,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 @@ -33,7 +33,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 3 diff --git a/test/onnx/expect/TestOperators.test_upsample.expect b/test/onnx/expect/TestOperators.test_upsample.expect index 6a4dbb1..385b834 100644 --- a/test/onnx/expect/TestOperators.test_upsample.expect +++ b/test/onnx/expect/TestOperators.test_upsample.expect @@ -9,7 +9,7 @@ graph { name: "value" t { dims: 4 - data_type: FLOAT + data_type: 1 raw_data: "\000\000\200?\000\000\200?\000\000\000@\000\000\000@" } type: TENSOR @@ -31,7 +31,7 @@ graph { name: "input" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -53,7 +53,7 @@ graph { name: "2" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/test/onnx/expect/TestOperators.test_view.expect b/test/onnx/expect/TestOperators.test_view.expect index be69ffb..2be8bd8 100644 --- a/test/onnx/expect/TestOperators.test_view.expect +++ b/test/onnx/expect/TestOperators.test_view.expect @@ -17,7 +17,7 @@ graph { name: "0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -30,7 +30,7 @@ graph { name: "1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 diff --git a/third_party/onnx b/third_party/onnx index aca8473..765f5ee 160000 --- a/third_party/onnx +++ b/third_party/onnx @@ -1 +1 @@ -Subproject commit aca8473a40cf43f01958c81b648efcee7f3a755a +Subproject commit 765f5ee823a67a866f4bd28a9860e81f3c811ce8 diff --git a/third_party/onnx-tensorrt b/third_party/onnx-tensorrt index f1c7aa6..9884f28 160000 --- a/third_party/onnx-tensorrt +++ b/third_party/onnx-tensorrt @@ -1 +1 @@ -Subproject commit f1c7aa63d88d8d8ef70490f2ebb6b33f7450218b +Subproject commit 9884f286a236a3b4e3218e4afa17781752e048bd -- 2.7.4