diff --git a/docs/Changelog.md b/docs/Changelog.md
index 15211ad1602..80f44aef678 100644
--- a/docs/Changelog.md
+++ b/docs/Changelog.md
@@ -28712,4 +28712,3 @@ This version of the operator has been available since version 1 of the 'ai.onnx.
T3 : tensor(float), tensor(double)
Constrain input types to float tensors.
-
diff --git a/docs/Operators.md b/docs/Operators.md
index 42d81c252bd..969f39ec7f8 100644
--- a/docs/Operators.md
+++ b/docs/Operators.md
@@ -36187,4 +36187,3 @@ expect(
-
diff --git a/onnx/backend/test/case/node/swish.py b/onnx/backend/test/case/node/swish.py
new file mode 100644
index 00000000000..dcb751a9b15
--- /dev/null
+++ b/onnx/backend/test/case/node/swish.py
@@ -0,0 +1,29 @@
+# Copyright (c) ONNX Project Contributors
+#
+# SPDX-License-Identifier: Apache-2.0
+from __future__ import annotations
+
+import numpy as np
+
+import onnx
+from onnx.backend.test.case.base import Base
+from onnx.backend.test.case.node import expect
+
+
+def swish(x: np.ndarray, alpha: np.float16) -> np.ndarray:
+ return x * 1 / (1 + np.exp(np.negative(x * alpha)))
+
+
+class Swish(Base):
+ @staticmethod
+ def export() -> None:
+ node = onnx.helper.make_node(
+ "Swish",
+ inputs=["x"],
+ outputs=["y"],
+ )
+
+ x = np.array([3, 4, 5]).astype(np.float32)
+ y = swish(x, alpha=1.0)
+
+ expect(node, inputs=[x], outputs=[y], name="test_swish")
diff --git a/onnx/backend/test/data/node/test_acos/model.onnx b/onnx/backend/test/data/node/test_acos/model.onnx
index 206ab391191..cc7c695f558 100644
Binary files a/onnx/backend/test/data/node/test_acos/model.onnx and b/onnx/backend/test/data/node/test_acos/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_acos_example/model.onnx b/onnx/backend/test/data/node/test_acos_example/model.onnx
index 8b29942f13f..c986dd6ba90 100644
Binary files a/onnx/backend/test/data/node/test_acos_example/model.onnx and b/onnx/backend/test/data/node/test_acos_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_acosh/model.onnx b/onnx/backend/test/data/node/test_acosh/model.onnx
index 916010c59b8..9651625d11c 100644
Binary files a/onnx/backend/test/data/node/test_acosh/model.onnx and b/onnx/backend/test/data/node/test_acosh/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_acosh_example/model.onnx b/onnx/backend/test/data/node/test_acosh_example/model.onnx
index 1fbfea14d9c..42eb9a1641a 100644
Binary files a/onnx/backend/test/data/node/test_acosh_example/model.onnx and b/onnx/backend/test/data/node/test_acosh_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_asin/model.onnx b/onnx/backend/test/data/node/test_asin/model.onnx
index e7d98048784..a7caca1b1a5 100644
Binary files a/onnx/backend/test/data/node/test_asin/model.onnx and b/onnx/backend/test/data/node/test_asin/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_asin_example/model.onnx b/onnx/backend/test/data/node/test_asin_example/model.onnx
index 22ddea64b64..a20be582129 100644
Binary files a/onnx/backend/test/data/node/test_asin_example/model.onnx and b/onnx/backend/test/data/node/test_asin_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_asinh/model.onnx b/onnx/backend/test/data/node/test_asinh/model.onnx
index 96d1db46bdf..922c0aef88e 100644
Binary files a/onnx/backend/test/data/node/test_asinh/model.onnx and b/onnx/backend/test/data/node/test_asinh/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_asinh_example/model.onnx b/onnx/backend/test/data/node/test_asinh_example/model.onnx
index eb477884976..7d02941a675 100644
Binary files a/onnx/backend/test/data/node/test_asinh_example/model.onnx and b/onnx/backend/test/data/node/test_asinh_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_atan/model.onnx b/onnx/backend/test/data/node/test_atan/model.onnx
index 4f2f5deee1d..7cd0e8e0416 100644
Binary files a/onnx/backend/test/data/node/test_atan/model.onnx and b/onnx/backend/test/data/node/test_atan/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_atan_example/model.onnx b/onnx/backend/test/data/node/test_atan_example/model.onnx
index bfe9894a60d..7b9525ee935 100644
Binary files a/onnx/backend/test/data/node/test_atan_example/model.onnx and b/onnx/backend/test/data/node/test_atan_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_atanh/model.onnx b/onnx/backend/test/data/node/test_atanh/model.onnx
index a1db102d3e7..3d1716d23a5 100644
Binary files a/onnx/backend/test/data/node/test_atanh/model.onnx and b/onnx/backend/test/data/node/test_atanh/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_atanh_example/model.onnx b/onnx/backend/test/data/node/test_atanh_example/model.onnx
index d0efa30625f..4e6d72d6a75 100644
Binary files a/onnx/backend/test/data/node/test_atanh_example/model.onnx and b/onnx/backend/test/data/node/test_atanh_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_1d_default/model.onnx b/onnx/backend/test/data/node/test_averagepool_1d_default/model.onnx
index 36f6b96a29b..14c0309706c 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_1d_default/model.onnx and b/onnx/backend/test/data/node/test_averagepool_1d_default/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_2d_ceil/model.onnx b/onnx/backend/test/data/node/test_averagepool_2d_ceil/model.onnx
index 168a69574f5..bb02ae58ca6 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_2d_ceil/model.onnx and b/onnx/backend/test/data/node/test_averagepool_2d_ceil/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_2d_default/model.onnx b/onnx/backend/test/data/node/test_averagepool_2d_default/model.onnx
index 11a1b13ef75..bd1efdecb29 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_2d_default/model.onnx and b/onnx/backend/test/data/node/test_averagepool_2d_default/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_2d_dilations/model.onnx b/onnx/backend/test/data/node/test_averagepool_2d_dilations/model.onnx
index ce3c86ed527..7de2313225e 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_2d_dilations/model.onnx and b/onnx/backend/test/data/node/test_averagepool_2d_dilations/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_2d_pads/model.onnx b/onnx/backend/test/data/node/test_averagepool_2d_pads/model.onnx
index 7d5e02e1941..2ed0e2e202d 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_2d_pads/model.onnx and b/onnx/backend/test/data/node/test_averagepool_2d_pads/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_2d_pads_count_include_pad/model.onnx b/onnx/backend/test/data/node/test_averagepool_2d_pads_count_include_pad/model.onnx
index 4157c3ad902..af266d7ac1a 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_2d_pads_count_include_pad/model.onnx and b/onnx/backend/test/data/node/test_averagepool_2d_pads_count_include_pad/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_2d_precomputed_pads/model.onnx b/onnx/backend/test/data/node/test_averagepool_2d_precomputed_pads/model.onnx
index 56e616d6457..08b517aabfe 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_2d_precomputed_pads/model.onnx and b/onnx/backend/test/data/node/test_averagepool_2d_precomputed_pads/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_2d_precomputed_pads_count_include_pad/model.onnx b/onnx/backend/test/data/node/test_averagepool_2d_precomputed_pads_count_include_pad/model.onnx
index 2c4c4d66758..bdd8f23928c 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_2d_precomputed_pads_count_include_pad/model.onnx and b/onnx/backend/test/data/node/test_averagepool_2d_precomputed_pads_count_include_pad/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_2d_precomputed_same_upper/model.onnx b/onnx/backend/test/data/node/test_averagepool_2d_precomputed_same_upper/model.onnx
index 413ec8d0ba5..c02c68b069a 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_2d_precomputed_same_upper/model.onnx and b/onnx/backend/test/data/node/test_averagepool_2d_precomputed_same_upper/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_2d_precomputed_strides/model.onnx b/onnx/backend/test/data/node/test_averagepool_2d_precomputed_strides/model.onnx
index b77b84e4686..d1d510ea42f 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_2d_precomputed_strides/model.onnx and b/onnx/backend/test/data/node/test_averagepool_2d_precomputed_strides/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_2d_same_lower/model.onnx b/onnx/backend/test/data/node/test_averagepool_2d_same_lower/model.onnx
index 75cfab55e13..eba0a5ff98e 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_2d_same_lower/model.onnx and b/onnx/backend/test/data/node/test_averagepool_2d_same_lower/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_2d_same_upper/model.onnx b/onnx/backend/test/data/node/test_averagepool_2d_same_upper/model.onnx
index 102b40fc388..2b3f8850c26 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_2d_same_upper/model.onnx and b/onnx/backend/test/data/node/test_averagepool_2d_same_upper/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_2d_strides/model.onnx b/onnx/backend/test/data/node/test_averagepool_2d_strides/model.onnx
index 71f2ba21560..45920377ed5 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_2d_strides/model.onnx and b/onnx/backend/test/data/node/test_averagepool_2d_strides/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_3d_default/model.onnx b/onnx/backend/test/data/node/test_averagepool_3d_default/model.onnx
index 4d1bcc84eb0..638a15930cd 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_3d_default/model.onnx and b/onnx/backend/test/data/node/test_averagepool_3d_default/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_0_ceil_mode_is_False/model.onnx b/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_0_ceil_mode_is_False/model.onnx
index 7a757250d57..a46212cff76 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_0_ceil_mode_is_False/model.onnx and b/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_0_ceil_mode_is_False/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_0_ceil_mode_is_True/model.onnx b/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_0_ceil_mode_is_True/model.onnx
index 894e85fdd48..2354fbfb7b1 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_0_ceil_mode_is_True/model.onnx and b/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_0_ceil_mode_is_True/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_1_ceil_mode_is_False/model.onnx b/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_1_ceil_mode_is_False/model.onnx
index eafe7769f21..79a25a22420 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_1_ceil_mode_is_False/model.onnx and b/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_1_ceil_mode_is_False/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_1_ceil_mode_is_True/model.onnx b/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_1_ceil_mode_is_True/model.onnx
index 27f6fb1f595..310be73f538 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_1_ceil_mode_is_True/model.onnx and b/onnx/backend/test/data/node/test_averagepool_3d_dilations_large_count_include_pad_is_1_ceil_mode_is_True/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_averagepool_3d_dilations_small/model.onnx b/onnx/backend/test/data/node/test_averagepool_3d_dilations_small/model.onnx
index 883cdbefa60..7a36e26fce9 100644
Binary files a/onnx/backend/test/data/node/test_averagepool_3d_dilations_small/model.onnx and b/onnx/backend/test/data/node/test_averagepool_3d_dilations_small/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_basic_conv_with_padding/model.onnx b/onnx/backend/test/data/node/test_basic_conv_with_padding/model.onnx
index e7c3e41f3cf..061490a61a9 100644
Binary files a/onnx/backend/test/data/node/test_basic_conv_with_padding/model.onnx and b/onnx/backend/test/data/node/test_basic_conv_with_padding/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_basic_conv_without_padding/model.onnx b/onnx/backend/test/data/node/test_basic_conv_without_padding/model.onnx
index dbdb55f308b..09acab9dcf7 100644
Binary files a/onnx/backend/test/data/node/test_basic_conv_without_padding/model.onnx and b/onnx/backend/test/data/node/test_basic_conv_without_padding/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_basic_deform_conv_with_padding/model.onnx b/onnx/backend/test/data/node/test_basic_deform_conv_with_padding/model.onnx
index 7729eeb1f26..2d040f02c9c 100644
Binary files a/onnx/backend/test/data/node/test_basic_deform_conv_with_padding/model.onnx and b/onnx/backend/test/data/node/test_basic_deform_conv_with_padding/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_basic_deform_conv_without_padding/model.onnx b/onnx/backend/test/data/node/test_basic_deform_conv_without_padding/model.onnx
index 1767e752c88..5cbe5291d4c 100644
Binary files a/onnx/backend/test/data/node/test_basic_deform_conv_without_padding/model.onnx and b/onnx/backend/test/data/node/test_basic_deform_conv_without_padding/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_bernoulli/model.onnx b/onnx/backend/test/data/node/test_bernoulli/model.onnx
index 702c9960fd4..47b791d6885 100644
Binary files a/onnx/backend/test/data/node/test_bernoulli/model.onnx and b/onnx/backend/test/data/node/test_bernoulli/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_bernoulli_double/model.onnx b/onnx/backend/test/data/node/test_bernoulli_double/model.onnx
index 929e4196e3b..f954a8dc57f 100644
Binary files a/onnx/backend/test/data/node/test_bernoulli_double/model.onnx and b/onnx/backend/test/data/node/test_bernoulli_double/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_bernoulli_double_expanded/model.onnx b/onnx/backend/test/data/node/test_bernoulli_double_expanded/model.onnx
index 558e38225b0..fcf50609026 100644
Binary files a/onnx/backend/test/data/node/test_bernoulli_double_expanded/model.onnx and b/onnx/backend/test/data/node/test_bernoulli_double_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_bernoulli_expanded/model.onnx b/onnx/backend/test/data/node/test_bernoulli_expanded/model.onnx
index c510c81bf60..785d12f46e8 100644
Binary files a/onnx/backend/test/data/node/test_bernoulli_expanded/model.onnx and b/onnx/backend/test/data/node/test_bernoulli_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_bernoulli_seed/model.onnx b/onnx/backend/test/data/node/test_bernoulli_seed/model.onnx
index ea69f01240e..85f1b82b5e2 100644
Binary files a/onnx/backend/test/data/node/test_bernoulli_seed/model.onnx and b/onnx/backend/test/data/node/test_bernoulli_seed/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_bernoulli_seed_expanded/model.onnx b/onnx/backend/test/data/node/test_bernoulli_seed_expanded/model.onnx
index 3236cbfec81..e195a6ce93c 100644
Binary files a/onnx/backend/test/data/node/test_bernoulli_seed_expanded/model.onnx and b/onnx/backend/test/data/node/test_bernoulli_seed_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_conv_with_autopad_same/model.onnx b/onnx/backend/test/data/node/test_conv_with_autopad_same/model.onnx
index 47dc4a25705..4033a6b6938 100644
Binary files a/onnx/backend/test/data/node/test_conv_with_autopad_same/model.onnx and b/onnx/backend/test/data/node/test_conv_with_autopad_same/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_conv_with_strides_and_asymmetric_padding/model.onnx b/onnx/backend/test/data/node/test_conv_with_strides_and_asymmetric_padding/model.onnx
index cfa8ad01787..144514526de 100644
Binary files a/onnx/backend/test/data/node/test_conv_with_strides_and_asymmetric_padding/model.onnx and b/onnx/backend/test/data/node/test_conv_with_strides_and_asymmetric_padding/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_conv_with_strides_no_padding/model.onnx b/onnx/backend/test/data/node/test_conv_with_strides_no_padding/model.onnx
index d4d1961718c..1423e48c486 100644
Binary files a/onnx/backend/test/data/node/test_conv_with_strides_no_padding/model.onnx and b/onnx/backend/test/data/node/test_conv_with_strides_no_padding/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_conv_with_strides_padding/model.onnx b/onnx/backend/test/data/node/test_conv_with_strides_padding/model.onnx
index adb8521473f..1282c6bdea6 100644
Binary files a/onnx/backend/test/data/node/test_conv_with_strides_padding/model.onnx and b/onnx/backend/test/data/node/test_conv_with_strides_padding/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_convtranspose/model.onnx b/onnx/backend/test/data/node/test_convtranspose/model.onnx
index 302c7619ed1..3720252596a 100644
Binary files a/onnx/backend/test/data/node/test_convtranspose/model.onnx and b/onnx/backend/test/data/node/test_convtranspose/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_convtranspose_1d/model.onnx b/onnx/backend/test/data/node/test_convtranspose_1d/model.onnx
index a1b9bcabd41..e703997baf7 100644
Binary files a/onnx/backend/test/data/node/test_convtranspose_1d/model.onnx and b/onnx/backend/test/data/node/test_convtranspose_1d/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_convtranspose_3d/model.onnx b/onnx/backend/test/data/node/test_convtranspose_3d/model.onnx
index 44bfb7b2995..ebdba71bf6a 100644
Binary files a/onnx/backend/test/data/node/test_convtranspose_3d/model.onnx and b/onnx/backend/test/data/node/test_convtranspose_3d/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_convtranspose_autopad_same/model.onnx b/onnx/backend/test/data/node/test_convtranspose_autopad_same/model.onnx
index cce8a8eccef..b65ac368787 100644
Binary files a/onnx/backend/test/data/node/test_convtranspose_autopad_same/model.onnx and b/onnx/backend/test/data/node/test_convtranspose_autopad_same/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_convtranspose_dilations/model.onnx b/onnx/backend/test/data/node/test_convtranspose_dilations/model.onnx
index 58e922a6b3d..80779a90263 100644
Binary files a/onnx/backend/test/data/node/test_convtranspose_dilations/model.onnx and b/onnx/backend/test/data/node/test_convtranspose_dilations/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_convtranspose_kernel_shape/model.onnx b/onnx/backend/test/data/node/test_convtranspose_kernel_shape/model.onnx
index 4d328e9cdf2..e0948814573 100644
Binary files a/onnx/backend/test/data/node/test_convtranspose_kernel_shape/model.onnx and b/onnx/backend/test/data/node/test_convtranspose_kernel_shape/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_convtranspose_output_shape/model.onnx b/onnx/backend/test/data/node/test_convtranspose_output_shape/model.onnx
index 8b9b86216a3..344a21a8c3c 100644
Binary files a/onnx/backend/test/data/node/test_convtranspose_output_shape/model.onnx and b/onnx/backend/test/data/node/test_convtranspose_output_shape/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_convtranspose_pad/model.onnx b/onnx/backend/test/data/node/test_convtranspose_pad/model.onnx
index b972e2653e2..bb593e66f07 100644
Binary files a/onnx/backend/test/data/node/test_convtranspose_pad/model.onnx and b/onnx/backend/test/data/node/test_convtranspose_pad/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_convtranspose_pads/model.onnx b/onnx/backend/test/data/node/test_convtranspose_pads/model.onnx
index 1e7116447cb..b17ff879e67 100644
Binary files a/onnx/backend/test/data/node/test_convtranspose_pads/model.onnx and b/onnx/backend/test/data/node/test_convtranspose_pads/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_cos/model.onnx b/onnx/backend/test/data/node/test_cos/model.onnx
index 9e1260acfac..5ec0d0c3247 100644
Binary files a/onnx/backend/test/data/node/test_cos/model.onnx and b/onnx/backend/test/data/node/test_cos/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_cos_example/model.onnx b/onnx/backend/test/data/node/test_cos_example/model.onnx
index b74fcbe66e2..6726ce0230a 100644
Binary files a/onnx/backend/test/data/node/test_cos_example/model.onnx and b/onnx/backend/test/data/node/test_cos_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_cosh/model.onnx b/onnx/backend/test/data/node/test_cosh/model.onnx
index e74ac53653e..68d88a42c03 100644
Binary files a/onnx/backend/test/data/node/test_cosh/model.onnx and b/onnx/backend/test/data/node/test_cosh/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_cosh_example/model.onnx b/onnx/backend/test/data/node/test_cosh_example/model.onnx
index 7dc7ab4dc5f..db9eec4d051 100644
Binary files a/onnx/backend/test/data/node/test_cosh_example/model.onnx and b/onnx/backend/test/data/node/test_cosh_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_deform_conv_with_mask_bias/model.onnx b/onnx/backend/test/data/node/test_deform_conv_with_mask_bias/model.onnx
index a48939459b2..3f5948c98a2 100644
Binary files a/onnx/backend/test/data/node/test_deform_conv_with_mask_bias/model.onnx and b/onnx/backend/test/data/node/test_deform_conv_with_mask_bias/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_deform_conv_with_multiple_offset_groups/model.onnx b/onnx/backend/test/data/node/test_deform_conv_with_multiple_offset_groups/model.onnx
index bb2b554d5b0..2adbaa41881 100644
Binary files a/onnx/backend/test/data/node/test_deform_conv_with_multiple_offset_groups/model.onnx and b/onnx/backend/test/data/node/test_deform_conv_with_multiple_offset_groups/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_dequantizelinear_int4/test_data_set_0/input_2.pb b/onnx/backend/test/data/node/test_dequantizelinear_int4/test_data_set_0/input_2.pb
index c0d4733202c..27697b35887 100644
--- a/onnx/backend/test/data/node/test_dequantizelinear_int4/test_data_set_0/input_2.pb
+++ b/onnx/backend/test/data/node/test_dequantizelinear_int4/test_data_set_0/input_2.pb
@@ -1 +1,2 @@
-*Bx_zero_point
\ No newline at end of file
+*B
+zero_point
\ No newline at end of file
diff --git a/onnx/backend/test/data/node/test_dequantizelinear_uint4/test_data_set_0/input_2.pb b/onnx/backend/test/data/node/test_dequantizelinear_uint4/test_data_set_0/input_2.pb
index 118b7d9a7ee..8876e08c6db 100644
--- a/onnx/backend/test/data/node/test_dequantizelinear_uint4/test_data_set_0/input_2.pb
+++ b/onnx/backend/test/data/node/test_dequantizelinear_uint4/test_data_set_0/input_2.pb
@@ -1 +1,2 @@
-*Bx_zero_point
\ No newline at end of file
+*B
+zero_point
\ No newline at end of file
diff --git a/onnx/backend/test/data/node/test_det_2d/model.onnx b/onnx/backend/test/data/node/test_det_2d/model.onnx
index b2f1c52802f..c1ceae61c0e 100644
Binary files a/onnx/backend/test/data/node/test_det_2d/model.onnx and b/onnx/backend/test/data/node/test_det_2d/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_det_nd/model.onnx b/onnx/backend/test/data/node/test_det_nd/model.onnx
index 26d4c871da4..07a153a1c58 100644
Binary files a/onnx/backend/test/data/node/test_det_nd/model.onnx and b/onnx/backend/test/data/node/test_det_nd/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_dropout_default/model.onnx b/onnx/backend/test/data/node/test_dropout_default/model.onnx
index be75e7dbb46..184e4485190 100644
Binary files a/onnx/backend/test/data/node/test_dropout_default/model.onnx and b/onnx/backend/test/data/node/test_dropout_default/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_dropout_default_mask/model.onnx b/onnx/backend/test/data/node/test_dropout_default_mask/model.onnx
index f45cd7a6080..ef7b9fa8e33 100644
Binary files a/onnx/backend/test/data/node/test_dropout_default_mask/model.onnx and b/onnx/backend/test/data/node/test_dropout_default_mask/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_dropout_default_mask_ratio/model.onnx b/onnx/backend/test/data/node/test_dropout_default_mask_ratio/model.onnx
index 343482d6c83..5b1f0707495 100644
Binary files a/onnx/backend/test/data/node/test_dropout_default_mask_ratio/model.onnx and b/onnx/backend/test/data/node/test_dropout_default_mask_ratio/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_dropout_default_ratio/model.onnx b/onnx/backend/test/data/node/test_dropout_default_ratio/model.onnx
index 3f079ba4621..8deb0febfd3 100644
Binary files a/onnx/backend/test/data/node/test_dropout_default_ratio/model.onnx and b/onnx/backend/test/data/node/test_dropout_default_ratio/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_elu/model.onnx b/onnx/backend/test/data/node/test_elu/model.onnx
index dd1003b7c4c..141d895bba6 100644
Binary files a/onnx/backend/test/data/node/test_elu/model.onnx and b/onnx/backend/test/data/node/test_elu/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_elu_default/model.onnx b/onnx/backend/test/data/node/test_elu_default/model.onnx
index 3a979710e02..4007dc33688 100644
Binary files a/onnx/backend/test/data/node/test_elu_default/model.onnx and b/onnx/backend/test/data/node/test_elu_default/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_elu_example/model.onnx b/onnx/backend/test/data/node/test_elu_example/model.onnx
index 99091bb5134..9ea0c1df665 100644
Binary files a/onnx/backend/test/data/node/test_elu_example/model.onnx and b/onnx/backend/test/data/node/test_elu_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_eyelike_populate_off_main_diagonal/model.onnx b/onnx/backend/test/data/node/test_eyelike_populate_off_main_diagonal/model.onnx
index 60a068b8e20..0b98de4160d 100644
Binary files a/onnx/backend/test/data/node/test_eyelike_populate_off_main_diagonal/model.onnx and b/onnx/backend/test/data/node/test_eyelike_populate_off_main_diagonal/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_eyelike_with_dtype/model.onnx b/onnx/backend/test/data/node/test_eyelike_with_dtype/model.onnx
index 8599bfdb16a..ca799fb505d 100644
Binary files a/onnx/backend/test/data/node/test_eyelike_with_dtype/model.onnx and b/onnx/backend/test/data/node/test_eyelike_with_dtype/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_eyelike_without_dtype/model.onnx b/onnx/backend/test/data/node/test_eyelike_without_dtype/model.onnx
index 584a3328605..6c7db0b132a 100644
Binary files a/onnx/backend/test/data/node/test_eyelike_without_dtype/model.onnx and b/onnx/backend/test/data/node/test_eyelike_without_dtype/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_globalaveragepool/model.onnx b/onnx/backend/test/data/node/test_globalaveragepool/model.onnx
index 1441d1ec365..f270439c98f 100644
Binary files a/onnx/backend/test/data/node/test_globalaveragepool/model.onnx and b/onnx/backend/test/data/node/test_globalaveragepool/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_globalaveragepool_precomputed/model.onnx b/onnx/backend/test/data/node/test_globalaveragepool_precomputed/model.onnx
index de1544e9697..e2100fe8ce6 100644
Binary files a/onnx/backend/test/data/node/test_globalaveragepool_precomputed/model.onnx and b/onnx/backend/test/data/node/test_globalaveragepool_precomputed/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_globalmaxpool/model.onnx b/onnx/backend/test/data/node/test_globalmaxpool/model.onnx
index 007fe816ba5..d641ee8bddb 100644
Binary files a/onnx/backend/test/data/node/test_globalmaxpool/model.onnx and b/onnx/backend/test/data/node/test_globalmaxpool/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_globalmaxpool_precomputed/model.onnx b/onnx/backend/test/data/node/test_globalmaxpool_precomputed/model.onnx
index 69ac33125c2..d1cac7c23be 100644
Binary files a/onnx/backend/test/data/node/test_globalmaxpool_precomputed/model.onnx and b/onnx/backend/test/data/node/test_globalmaxpool_precomputed/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample/model.onnx b/onnx/backend/test/data/node/test_gridsample/model.onnx
index 1d17074133e..334b8cca0ab 100644
Binary files a/onnx/backend/test/data/node/test_gridsample/model.onnx and b/onnx/backend/test/data/node/test_gridsample/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_aligncorners_true/model.onnx b/onnx/backend/test/data/node/test_gridsample_aligncorners_true/model.onnx
index 6def3c0df96..40b0e8b6fab 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_aligncorners_true/model.onnx and b/onnx/backend/test/data/node/test_gridsample_aligncorners_true/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_bicubic/model.onnx b/onnx/backend/test/data/node/test_gridsample_bicubic/model.onnx
index 307d6519556..14cb8486881 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_bicubic/model.onnx and b/onnx/backend/test/data/node/test_gridsample_bicubic/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_bicubic_align_corners_0_additional_1/model.onnx b/onnx/backend/test/data/node/test_gridsample_bicubic_align_corners_0_additional_1/model.onnx
index cf230353d27..ec7876ecf27 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_bicubic_align_corners_0_additional_1/model.onnx and b/onnx/backend/test/data/node/test_gridsample_bicubic_align_corners_0_additional_1/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_bicubic_align_corners_1_additional_1/model.onnx b/onnx/backend/test/data/node/test_gridsample_bicubic_align_corners_1_additional_1/model.onnx
index a617350a9af..19f37d04523 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_bicubic_align_corners_1_additional_1/model.onnx and b/onnx/backend/test/data/node/test_gridsample_bicubic_align_corners_1_additional_1/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_bilinear/model.onnx b/onnx/backend/test/data/node/test_gridsample_bilinear/model.onnx
index bb1b2ebd769..af5a0847336 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_bilinear/model.onnx and b/onnx/backend/test/data/node/test_gridsample_bilinear/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_bilinear_align_corners_0_additional_1/model.onnx b/onnx/backend/test/data/node/test_gridsample_bilinear_align_corners_0_additional_1/model.onnx
index 07ac23f070b..188342495b8 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_bilinear_align_corners_0_additional_1/model.onnx and b/onnx/backend/test/data/node/test_gridsample_bilinear_align_corners_0_additional_1/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_bilinear_align_corners_1_additional_1/model.onnx b/onnx/backend/test/data/node/test_gridsample_bilinear_align_corners_1_additional_1/model.onnx
index c17ad25317b..e5686c3c37d 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_bilinear_align_corners_1_additional_1/model.onnx and b/onnx/backend/test/data/node/test_gridsample_bilinear_align_corners_1_additional_1/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_border_padding/model.onnx b/onnx/backend/test/data/node/test_gridsample_border_padding/model.onnx
index 3c548c90ff6..01fbcef9853 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_border_padding/model.onnx and b/onnx/backend/test/data/node/test_gridsample_border_padding/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_nearest/model.onnx b/onnx/backend/test/data/node/test_gridsample_nearest/model.onnx
index 294090833db..bacb4086e0d 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_nearest/model.onnx and b/onnx/backend/test/data/node/test_gridsample_nearest/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_nearest_align_corners_0_additional_1/model.onnx b/onnx/backend/test/data/node/test_gridsample_nearest_align_corners_0_additional_1/model.onnx
index 245dcbfba8a..2003d009b6d 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_nearest_align_corners_0_additional_1/model.onnx and b/onnx/backend/test/data/node/test_gridsample_nearest_align_corners_0_additional_1/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_nearest_align_corners_1_additional_1/model.onnx b/onnx/backend/test/data/node/test_gridsample_nearest_align_corners_1_additional_1/model.onnx
index de22147ab35..2a105639f0d 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_nearest_align_corners_1_additional_1/model.onnx and b/onnx/backend/test/data/node/test_gridsample_nearest_align_corners_1_additional_1/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_reflection_padding/model.onnx b/onnx/backend/test/data/node/test_gridsample_reflection_padding/model.onnx
index 203f1434d34..9c7f5cf9ab9 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_reflection_padding/model.onnx and b/onnx/backend/test/data/node/test_gridsample_reflection_padding/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_volumetric_bilinear_align_corners_0/model.onnx b/onnx/backend/test/data/node/test_gridsample_volumetric_bilinear_align_corners_0/model.onnx
index 7f90268223a..02d940fb147 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_volumetric_bilinear_align_corners_0/model.onnx and b/onnx/backend/test/data/node/test_gridsample_volumetric_bilinear_align_corners_0/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_volumetric_bilinear_align_corners_1/model.onnx b/onnx/backend/test/data/node/test_gridsample_volumetric_bilinear_align_corners_1/model.onnx
index e3781ffb3b6..af0b03cd424 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_volumetric_bilinear_align_corners_1/model.onnx and b/onnx/backend/test/data/node/test_gridsample_volumetric_bilinear_align_corners_1/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_volumetric_nearest_align_corners_0/model.onnx b/onnx/backend/test/data/node/test_gridsample_volumetric_nearest_align_corners_0/model.onnx
index 706252dc073..d87cce0017b 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_volumetric_nearest_align_corners_0/model.onnx and b/onnx/backend/test/data/node/test_gridsample_volumetric_nearest_align_corners_0/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_volumetric_nearest_align_corners_1/model.onnx b/onnx/backend/test/data/node/test_gridsample_volumetric_nearest_align_corners_1/model.onnx
index 2eb750c678e..dd789c06a01 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_volumetric_nearest_align_corners_1/model.onnx and b/onnx/backend/test/data/node/test_gridsample_volumetric_nearest_align_corners_1/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gridsample_zeros_padding/model.onnx b/onnx/backend/test/data/node/test_gridsample_zeros_padding/model.onnx
index 7ed92ef5311..fb2b33369d9 100644
Binary files a/onnx/backend/test/data/node/test_gridsample_zeros_padding/model.onnx and b/onnx/backend/test/data/node/test_gridsample_zeros_padding/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gru_batchwise/model.onnx b/onnx/backend/test/data/node/test_gru_batchwise/model.onnx
index 6e8a50d56f3..8d50456cb68 100644
Binary files a/onnx/backend/test/data/node/test_gru_batchwise/model.onnx and b/onnx/backend/test/data/node/test_gru_batchwise/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gru_defaults/model.onnx b/onnx/backend/test/data/node/test_gru_defaults/model.onnx
index 07689ef4137..36fcba152af 100644
Binary files a/onnx/backend/test/data/node/test_gru_defaults/model.onnx and b/onnx/backend/test/data/node/test_gru_defaults/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gru_seq_length/model.onnx b/onnx/backend/test/data/node/test_gru_seq_length/model.onnx
index 5f0369e7530..2c9c2489c53 100644
Binary files a/onnx/backend/test/data/node/test_gru_seq_length/model.onnx and b/onnx/backend/test/data/node/test_gru_seq_length/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_gru_with_initial_bias/model.onnx b/onnx/backend/test/data/node/test_gru_with_initial_bias/model.onnx
index d87b797d815..db0c7de9456 100644
Binary files a/onnx/backend/test/data/node/test_gru_with_initial_bias/model.onnx and b/onnx/backend/test/data/node/test_gru_with_initial_bias/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_hardsigmoid/model.onnx b/onnx/backend/test/data/node/test_hardsigmoid/model.onnx
index 5070351948d..b330b5ce914 100644
Binary files a/onnx/backend/test/data/node/test_hardsigmoid/model.onnx and b/onnx/backend/test/data/node/test_hardsigmoid/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_hardsigmoid_default/model.onnx b/onnx/backend/test/data/node/test_hardsigmoid_default/model.onnx
index d0e57f315b1..2672c13398e 100644
Binary files a/onnx/backend/test/data/node/test_hardsigmoid_default/model.onnx and b/onnx/backend/test/data/node/test_hardsigmoid_default/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_hardsigmoid_example/model.onnx b/onnx/backend/test/data/node/test_hardsigmoid_example/model.onnx
index ffe09d493db..4c1564a09ef 100644
Binary files a/onnx/backend/test/data/node/test_hardsigmoid_example/model.onnx and b/onnx/backend/test/data/node/test_hardsigmoid_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_hardswish/model.onnx b/onnx/backend/test/data/node/test_hardswish/model.onnx
index 0ed0b321208..f72506caa0f 100644
Binary files a/onnx/backend/test/data/node/test_hardswish/model.onnx and b/onnx/backend/test/data/node/test_hardswish/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_hardswish_expanded/model.onnx b/onnx/backend/test/data/node/test_hardswish_expanded/model.onnx
index abe72af6be2..ecfe4f31ba5 100644
Binary files a/onnx/backend/test/data/node/test_hardswish_expanded/model.onnx and b/onnx/backend/test/data/node/test_hardswish_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_image_decoder_decode_jpeg2k_rgb/test_data_set_0/input_0.pb b/onnx/backend/test/data/node/test_image_decoder_decode_jpeg2k_rgb/test_data_set_0/input_0.pb
index 5f4cb90f28a..66db10c971f 100644
Binary files a/onnx/backend/test/data/node/test_image_decoder_decode_jpeg2k_rgb/test_data_set_0/input_0.pb and b/onnx/backend/test/data/node/test_image_decoder_decode_jpeg2k_rgb/test_data_set_0/input_0.pb differ
diff --git a/onnx/backend/test/data/node/test_instancenorm_epsilon/model.onnx b/onnx/backend/test/data/node/test_instancenorm_epsilon/model.onnx
index 9cf84c252d0..d6ac084c975 100644
Binary files a/onnx/backend/test/data/node/test_instancenorm_epsilon/model.onnx and b/onnx/backend/test/data/node/test_instancenorm_epsilon/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_instancenorm_example/model.onnx b/onnx/backend/test/data/node/test_instancenorm_example/model.onnx
index ae190ddd654..37a901970a2 100644
Binary files a/onnx/backend/test/data/node/test_instancenorm_example/model.onnx and b/onnx/backend/test/data/node/test_instancenorm_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_lppool_1d_default/model.onnx b/onnx/backend/test/data/node/test_lppool_1d_default/model.onnx
index d3d882afbed..8734aa23c9c 100644
Binary files a/onnx/backend/test/data/node/test_lppool_1d_default/model.onnx and b/onnx/backend/test/data/node/test_lppool_1d_default/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_lppool_2d_default/model.onnx b/onnx/backend/test/data/node/test_lppool_2d_default/model.onnx
index 0cd55f03c51..6d8e9eef7f9 100644
Binary files a/onnx/backend/test/data/node/test_lppool_2d_default/model.onnx and b/onnx/backend/test/data/node/test_lppool_2d_default/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_lppool_2d_dilations/model.onnx b/onnx/backend/test/data/node/test_lppool_2d_dilations/model.onnx
index 7970480a7df..503ccff12b9 100644
Binary files a/onnx/backend/test/data/node/test_lppool_2d_dilations/model.onnx and b/onnx/backend/test/data/node/test_lppool_2d_dilations/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_lppool_2d_pads/model.onnx b/onnx/backend/test/data/node/test_lppool_2d_pads/model.onnx
index 4d01b667e63..73121feab9b 100644
Binary files a/onnx/backend/test/data/node/test_lppool_2d_pads/model.onnx and b/onnx/backend/test/data/node/test_lppool_2d_pads/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_lppool_2d_same_lower/model.onnx b/onnx/backend/test/data/node/test_lppool_2d_same_lower/model.onnx
index 00afca88cc1..dbc14bf1a9b 100644
Binary files a/onnx/backend/test/data/node/test_lppool_2d_same_lower/model.onnx and b/onnx/backend/test/data/node/test_lppool_2d_same_lower/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_lppool_2d_same_upper/model.onnx b/onnx/backend/test/data/node/test_lppool_2d_same_upper/model.onnx
index 108b05ae157..3216a2a2936 100644
Binary files a/onnx/backend/test/data/node/test_lppool_2d_same_upper/model.onnx and b/onnx/backend/test/data/node/test_lppool_2d_same_upper/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_lppool_2d_strides/model.onnx b/onnx/backend/test/data/node/test_lppool_2d_strides/model.onnx
index 0ddc7b602cb..fa7064f299b 100644
Binary files a/onnx/backend/test/data/node/test_lppool_2d_strides/model.onnx and b/onnx/backend/test/data/node/test_lppool_2d_strides/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_lppool_3d_default/model.onnx b/onnx/backend/test/data/node/test_lppool_3d_default/model.onnx
index becb512e64d..e8e653d2838 100644
Binary files a/onnx/backend/test/data/node/test_lppool_3d_default/model.onnx and b/onnx/backend/test/data/node/test_lppool_3d_default/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_lstm_batchwise/model.onnx b/onnx/backend/test/data/node/test_lstm_batchwise/model.onnx
index 29284301f78..a10fa1840df 100644
Binary files a/onnx/backend/test/data/node/test_lstm_batchwise/model.onnx and b/onnx/backend/test/data/node/test_lstm_batchwise/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_lstm_defaults/model.onnx b/onnx/backend/test/data/node/test_lstm_defaults/model.onnx
index a7bcc594141..7e6a4af6806 100644
Binary files a/onnx/backend/test/data/node/test_lstm_defaults/model.onnx and b/onnx/backend/test/data/node/test_lstm_defaults/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_lstm_with_initial_bias/model.onnx b/onnx/backend/test/data/node/test_lstm_with_initial_bias/model.onnx
index caba9ced475..1574652ffda 100644
Binary files a/onnx/backend/test/data/node/test_lstm_with_initial_bias/model.onnx and b/onnx/backend/test/data/node/test_lstm_with_initial_bias/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_lstm_with_peepholes/model.onnx b/onnx/backend/test/data/node/test_lstm_with_peepholes/model.onnx
index 21a905342a2..c5e3f974c4f 100644
Binary files a/onnx/backend/test/data/node/test_lstm_with_peepholes/model.onnx and b/onnx/backend/test/data/node/test_lstm_with_peepholes/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_1d_default/model.onnx b/onnx/backend/test/data/node/test_maxpool_1d_default/model.onnx
index dba3be8456f..d72de35c8e7 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_1d_default/model.onnx and b/onnx/backend/test/data/node/test_maxpool_1d_default/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_2d_ceil/model.onnx b/onnx/backend/test/data/node/test_maxpool_2d_ceil/model.onnx
index 4bb1e32b06d..7515f602fcb 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_2d_ceil/model.onnx and b/onnx/backend/test/data/node/test_maxpool_2d_ceil/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_2d_ceil_output_size_reduce_by_one/model.onnx b/onnx/backend/test/data/node/test_maxpool_2d_ceil_output_size_reduce_by_one/model.onnx
index c0b1842bfed..0c136bf91b9 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_2d_ceil_output_size_reduce_by_one/model.onnx and b/onnx/backend/test/data/node/test_maxpool_2d_ceil_output_size_reduce_by_one/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_2d_default/model.onnx b/onnx/backend/test/data/node/test_maxpool_2d_default/model.onnx
index 64c4aff7171..820d4fdc4c4 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_2d_default/model.onnx and b/onnx/backend/test/data/node/test_maxpool_2d_default/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_2d_dilations/model.onnx b/onnx/backend/test/data/node/test_maxpool_2d_dilations/model.onnx
index 3c304ff4aa4..19140d87016 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_2d_dilations/model.onnx and b/onnx/backend/test/data/node/test_maxpool_2d_dilations/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_2d_pads/model.onnx b/onnx/backend/test/data/node/test_maxpool_2d_pads/model.onnx
index 98cbdbe0cc2..a917b6a9094 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_2d_pads/model.onnx and b/onnx/backend/test/data/node/test_maxpool_2d_pads/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_2d_precomputed_pads/model.onnx b/onnx/backend/test/data/node/test_maxpool_2d_precomputed_pads/model.onnx
index 331007ddad9..656f49679ed 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_2d_precomputed_pads/model.onnx and b/onnx/backend/test/data/node/test_maxpool_2d_precomputed_pads/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_2d_precomputed_same_upper/model.onnx b/onnx/backend/test/data/node/test_maxpool_2d_precomputed_same_upper/model.onnx
index 94ab65992fc..dc39dd1813f 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_2d_precomputed_same_upper/model.onnx and b/onnx/backend/test/data/node/test_maxpool_2d_precomputed_same_upper/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_2d_precomputed_strides/model.onnx b/onnx/backend/test/data/node/test_maxpool_2d_precomputed_strides/model.onnx
index 3175fabc99f..53d8d72a344 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_2d_precomputed_strides/model.onnx and b/onnx/backend/test/data/node/test_maxpool_2d_precomputed_strides/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_2d_same_lower/model.onnx b/onnx/backend/test/data/node/test_maxpool_2d_same_lower/model.onnx
index d972e13bfab..42cd27dcbe0 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_2d_same_lower/model.onnx and b/onnx/backend/test/data/node/test_maxpool_2d_same_lower/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_2d_same_upper/model.onnx b/onnx/backend/test/data/node/test_maxpool_2d_same_upper/model.onnx
index 0a4514be963..b282f64679d 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_2d_same_upper/model.onnx and b/onnx/backend/test/data/node/test_maxpool_2d_same_upper/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_2d_strides/model.onnx b/onnx/backend/test/data/node/test_maxpool_2d_strides/model.onnx
index ad67b18f51a..10a2ac5f1dc 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_2d_strides/model.onnx and b/onnx/backend/test/data/node/test_maxpool_2d_strides/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_2d_uint8/model.onnx b/onnx/backend/test/data/node/test_maxpool_2d_uint8/model.onnx
index 8f4fe785561..f3e38809441 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_2d_uint8/model.onnx and b/onnx/backend/test/data/node/test_maxpool_2d_uint8/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_3d_default/model.onnx b/onnx/backend/test/data/node/test_maxpool_3d_default/model.onnx
index c4e27bb94eb..15d6e4c265c 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_3d_default/model.onnx and b/onnx/backend/test/data/node/test_maxpool_3d_default/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_3d_dilations/model.onnx b/onnx/backend/test/data/node/test_maxpool_3d_dilations/model.onnx
index f9e9844cb8e..7b2bb587f78 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_3d_dilations/model.onnx and b/onnx/backend/test/data/node/test_maxpool_3d_dilations/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_3d_dilations_use_ref_impl/model.onnx b/onnx/backend/test/data/node/test_maxpool_3d_dilations_use_ref_impl/model.onnx
index 381c4957c39..b1e4d1e0f6a 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_3d_dilations_use_ref_impl/model.onnx and b/onnx/backend/test/data/node/test_maxpool_3d_dilations_use_ref_impl/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_3d_dilations_use_ref_impl_large/model.onnx b/onnx/backend/test/data/node/test_maxpool_3d_dilations_use_ref_impl_large/model.onnx
index 9509ad6e4a9..3f27feed751 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_3d_dilations_use_ref_impl_large/model.onnx and b/onnx/backend/test/data/node/test_maxpool_3d_dilations_use_ref_impl_large/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_with_argmax_2d_precomputed_pads/model.onnx b/onnx/backend/test/data/node/test_maxpool_with_argmax_2d_precomputed_pads/model.onnx
index 3abdc840c54..352bd92939a 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_with_argmax_2d_precomputed_pads/model.onnx and b/onnx/backend/test/data/node/test_maxpool_with_argmax_2d_precomputed_pads/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxpool_with_argmax_2d_precomputed_strides/model.onnx b/onnx/backend/test/data/node/test_maxpool_with_argmax_2d_precomputed_strides/model.onnx
index a67af2fbf6b..2d1d01124b6 100644
Binary files a/onnx/backend/test/data/node/test_maxpool_with_argmax_2d_precomputed_strides/model.onnx and b/onnx/backend/test/data/node/test_maxpool_with_argmax_2d_precomputed_strides/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxunpool_export_with_output_shape/model.onnx b/onnx/backend/test/data/node/test_maxunpool_export_with_output_shape/model.onnx
index 04673fcc00e..117892ddba7 100644
Binary files a/onnx/backend/test/data/node/test_maxunpool_export_with_output_shape/model.onnx and b/onnx/backend/test/data/node/test_maxunpool_export_with_output_shape/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_maxunpool_export_without_output_shape/model.onnx b/onnx/backend/test/data/node/test_maxunpool_export_without_output_shape/model.onnx
index 38cc84cc23c..afc56ebff14 100644
Binary files a/onnx/backend/test/data/node/test_maxunpool_export_without_output_shape/model.onnx and b/onnx/backend/test/data/node/test_maxunpool_export_without_output_shape/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_mish/model.onnx b/onnx/backend/test/data/node/test_mish/model.onnx
index 9b8fb3a8fb2..a2218ac41b3 100644
Binary files a/onnx/backend/test/data/node/test_mish/model.onnx and b/onnx/backend/test/data/node/test_mish/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_mish_expanded/model.onnx b/onnx/backend/test/data/node/test_mish_expanded/model.onnx
index 465033dec4e..8e8f56c1944 100644
Binary files a/onnx/backend/test/data/node/test_mish_expanded/model.onnx and b/onnx/backend/test/data/node/test_mish_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NC/model.onnx b/onnx/backend/test/data/node/test_nllloss_NC/model.onnx
index 0d5f13841d9..53aec2ac361 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NC/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NC/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NC_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NC_expanded/model.onnx
index 0a13d6ffcbc..fc00ac93ebe 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NC_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NC_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1/model.onnx
index 189dc6c3c00..470693beb69 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1_expanded/model.onnx
index d63471102cd..20d2ead61dd 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1_ii/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1_ii/model.onnx
index b823ccbb2fb..c855c5a81b3 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1_ii/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1_ii/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1_ii_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1_ii_expanded/model.onnx
index c75e4ea1f78..34ee1d47465 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1_ii_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1_ii_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1_mean_weight_negative_ii/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1_mean_weight_negative_ii/model.onnx
index e9d99c82bff..31bd38f307b 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1_mean_weight_negative_ii/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1_mean_weight_negative_ii/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1_mean_weight_negative_ii_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1_mean_weight_negative_ii_expanded/model.onnx
index 6f6a3f21ff2..b1693806e20 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1_mean_weight_negative_ii_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1_mean_weight_negative_ii_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1_weight/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1_weight/model.onnx
index 902f9a0d0b0..360bc70a91c 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1_weight/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1_weight/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1_weight_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1_weight_expanded/model.onnx
index 2ec9919837f..11bcc65caf9 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1_weight_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1_weight_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1_weight_ii/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1_weight_ii/model.onnx
index 425f977a785..086297336b6 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1_weight_ii/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1_weight_ii/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1_weight_ii_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1_weight_ii_expanded/model.onnx
index 4f85c65e976..49017ae3158 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1_weight_ii_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1_weight_ii_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2/model.onnx
index b91f1dfac1a..76f4cfaa31e 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2_expanded/model.onnx
index e07381d064d..72777a5c1f1 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2_no_weight_reduction_mean_ii/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2_no_weight_reduction_mean_ii/model.onnx
index d9bc385e3a6..50b3c48cebc 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2_no_weight_reduction_mean_ii/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2_no_weight_reduction_mean_ii/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2_no_weight_reduction_mean_ii_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2_no_weight_reduction_mean_ii_expanded/model.onnx
index 59ee8e5d8a7..b07bb7d978d 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2_no_weight_reduction_mean_ii_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2_no_weight_reduction_mean_ii_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_mean/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_mean/model.onnx
index fd66cfa636a..f47a0d141e2 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_mean/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_mean/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_mean_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_mean_expanded/model.onnx
index 4cc60dbe042..f8a3754b0a7 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_mean_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_mean_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_sum/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_sum/model.onnx
index d91ed9a8371..36b94d996e3 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_sum/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_sum/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_sum_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_sum_expanded/model.onnx
index e2899d978ae..447cca891c9 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_sum_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2_reduction_sum_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight/model.onnx
index 1fbc64e773b..afeef04cc45 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_expanded/model.onnx
index 5b9611af54a..bb187cea67d 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_mean/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_mean/model.onnx
index 5e928bfc0e5..19ae33e1f2e 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_mean/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_mean/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_mean_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_mean_expanded/model.onnx
index d8bd66f76a2..50f66085ace 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_mean_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_mean_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum/model.onnx
index 50d52ec64b8..fcc48702c96 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum_expanded/model.onnx
index 4dd5a25b1fc..06e5b65e6d0 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum_ii/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum_ii/model.onnx
index 5fb3c75bfe3..30e926e943b 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum_ii/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum_ii/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum_ii_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum_ii_expanded/model.onnx
index 31c93d17e97..acc84e0bef1 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum_ii_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2_with_weight_reduction_sum_ii_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_none_no_weight_negative_ii/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_none_no_weight_negative_ii/model.onnx
index f7f4ff93df4..f1022a4bd9f 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_none_no_weight_negative_ii/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_none_no_weight_negative_ii/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_none_no_weight_negative_ii_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_none_no_weight_negative_ii_expanded/model.onnx
index 0416417bfd7..4f236df7a8c 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_none_no_weight_negative_ii_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_none_no_weight_negative_ii_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_sum_weight_high_ii/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_sum_weight_high_ii/model.onnx
index eebc8c5b7f1..8bb7c542065 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_sum_weight_high_ii/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_sum_weight_high_ii/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_sum_weight_high_ii_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_sum_weight_high_ii_expanded/model.onnx
index 4d8c1c76e33..ea7d7177f20 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_sum_weight_high_ii_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3_sum_weight_high_ii_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_mean_weight/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_mean_weight/model.onnx
index 178faf552df..248908917d7 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_mean_weight/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_mean_weight/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_mean_weight_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_mean_weight_expanded/model.onnx
index ede9e00357a..db7aea4c097 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_mean_weight_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_mean_weight_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_none_no_weight/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_none_no_weight/model.onnx
index 07005b6d702..e32ea857f6d 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_none_no_weight/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_none_no_weight/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_none_no_weight_expanded/model.onnx b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_none_no_weight_expanded/model.onnx
index 89543e5650c..e919d1d37c2 100644
Binary files a/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_none_no_weight_expanded/model.onnx and b/onnx/backend/test/data/node/test_nllloss_NCd1d2d3d4d5_none_no_weight_expanded/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_quantizelinear_e4m3fn/test_data_set_0/input_2.pb b/onnx/backend/test/data/node/test_quantizelinear_e4m3fn/test_data_set_0/input_2.pb
index 012db712442..a6e11c419bf 100644
Binary files a/onnx/backend/test/data/node/test_quantizelinear_e4m3fn/test_data_set_0/input_2.pb and b/onnx/backend/test/data/node/test_quantizelinear_e4m3fn/test_data_set_0/input_2.pb differ
diff --git a/onnx/backend/test/data/node/test_quantizelinear_e5m2/test_data_set_0/input_2.pb b/onnx/backend/test/data/node/test_quantizelinear_e5m2/test_data_set_0/input_2.pb
index b7eca6fbcfe..8749ea311c5 100644
Binary files a/onnx/backend/test/data/node/test_quantizelinear_e5m2/test_data_set_0/input_2.pb and b/onnx/backend/test/data/node/test_quantizelinear_e5m2/test_data_set_0/input_2.pb differ
diff --git a/onnx/backend/test/data/node/test_quantizelinear_int4/test_data_set_0/input_2.pb b/onnx/backend/test/data/node/test_quantizelinear_int4/test_data_set_0/input_2.pb
index 7a0bc58621b..9fe0fc5b846 100644
--- a/onnx/backend/test/data/node/test_quantizelinear_int4/test_data_set_0/input_2.pb
+++ b/onnx/backend/test/data/node/test_quantizelinear_int4/test_data_set_0/input_2.pb
@@ -1 +1,2 @@
-*By_zero_point
\ No newline at end of file
+*B
+zero_point
\ No newline at end of file
diff --git a/onnx/backend/test/data/node/test_quantizelinear_uint4/test_data_set_0/input_2.pb b/onnx/backend/test/data/node/test_quantizelinear_uint4/test_data_set_0/input_2.pb
index b0fdf1565af..412ac47a2c0 100644
--- a/onnx/backend/test/data/node/test_quantizelinear_uint4/test_data_set_0/input_2.pb
+++ b/onnx/backend/test/data/node/test_quantizelinear_uint4/test_data_set_0/input_2.pb
@@ -1 +1,2 @@
-*By_zero_point
\ No newline at end of file
+*B
+zero_point
\ No newline at end of file
diff --git a/onnx/backend/test/data/node/test_rnn_seq_length/model.onnx b/onnx/backend/test/data/node/test_rnn_seq_length/model.onnx
index 7a025009f9b..e8273e546cd 100644
Binary files a/onnx/backend/test/data/node/test_rnn_seq_length/model.onnx and b/onnx/backend/test/data/node/test_rnn_seq_length/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_roialign_aligned_false/model.onnx b/onnx/backend/test/data/node/test_roialign_aligned_false/model.onnx
index cd9dfe7c2de..36f9ea44fdf 100644
Binary files a/onnx/backend/test/data/node/test_roialign_aligned_false/model.onnx and b/onnx/backend/test/data/node/test_roialign_aligned_false/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_roialign_aligned_true/model.onnx b/onnx/backend/test/data/node/test_roialign_aligned_true/model.onnx
index eb22ab1cbac..0626de8e12c 100644
Binary files a/onnx/backend/test/data/node/test_roialign_aligned_true/model.onnx and b/onnx/backend/test/data/node/test_roialign_aligned_true/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_roialign_mode_max/model.onnx b/onnx/backend/test/data/node/test_roialign_mode_max/model.onnx
index c27207af408..c49bcbcebde 100644
Binary files a/onnx/backend/test/data/node/test_roialign_mode_max/model.onnx and b/onnx/backend/test/data/node/test_roialign_mode_max/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_round/model.onnx b/onnx/backend/test/data/node/test_round/model.onnx
index 385814c703d..5551b49085d 100644
Binary files a/onnx/backend/test/data/node/test_round/model.onnx and b/onnx/backend/test/data/node/test_round/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_selu/model.onnx b/onnx/backend/test/data/node/test_selu/model.onnx
index 364ae843613..969a340a741 100644
Binary files a/onnx/backend/test/data/node/test_selu/model.onnx and b/onnx/backend/test/data/node/test_selu/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_selu_default/model.onnx b/onnx/backend/test/data/node/test_selu_default/model.onnx
index 32f7c62f4cd..72e2bd3f48a 100644
Binary files a/onnx/backend/test/data/node/test_selu_default/model.onnx and b/onnx/backend/test/data/node/test_selu_default/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_selu_example/model.onnx b/onnx/backend/test/data/node/test_selu_example/model.onnx
index d822ec6a6a0..b611f4c795f 100644
Binary files a/onnx/backend/test/data/node/test_selu_example/model.onnx and b/onnx/backend/test/data/node/test_selu_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_simple_rnn_batchwise/model.onnx b/onnx/backend/test/data/node/test_simple_rnn_batchwise/model.onnx
index 8a52d04d730..1427cacbe9a 100644
Binary files a/onnx/backend/test/data/node/test_simple_rnn_batchwise/model.onnx and b/onnx/backend/test/data/node/test_simple_rnn_batchwise/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_simple_rnn_defaults/model.onnx b/onnx/backend/test/data/node/test_simple_rnn_defaults/model.onnx
index b376c00d659..d2d636dde0d 100644
Binary files a/onnx/backend/test/data/node/test_simple_rnn_defaults/model.onnx and b/onnx/backend/test/data/node/test_simple_rnn_defaults/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_simple_rnn_with_initial_bias/model.onnx b/onnx/backend/test/data/node/test_simple_rnn_with_initial_bias/model.onnx
index 75707202c8d..c87dded2272 100644
Binary files a/onnx/backend/test/data/node/test_simple_rnn_with_initial_bias/model.onnx and b/onnx/backend/test/data/node/test_simple_rnn_with_initial_bias/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_sin/model.onnx b/onnx/backend/test/data/node/test_sin/model.onnx
index 23fdf09faf5..724fc74d610 100644
Binary files a/onnx/backend/test/data/node/test_sin/model.onnx and b/onnx/backend/test/data/node/test_sin/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_sin_example/model.onnx b/onnx/backend/test/data/node/test_sin_example/model.onnx
index a2678a54181..abdb5ae6e3e 100644
Binary files a/onnx/backend/test/data/node/test_sin_example/model.onnx and b/onnx/backend/test/data/node/test_sin_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_sinh/model.onnx b/onnx/backend/test/data/node/test_sinh/model.onnx
index 54cb1d7cdc3..496db2d0821 100644
Binary files a/onnx/backend/test/data/node/test_sinh/model.onnx and b/onnx/backend/test/data/node/test_sinh/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_sinh_example/model.onnx b/onnx/backend/test/data/node/test_sinh_example/model.onnx
index b47d538826c..640cf0a01e8 100644
Binary files a/onnx/backend/test/data/node/test_sinh_example/model.onnx and b/onnx/backend/test/data/node/test_sinh_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_softplus/model.onnx b/onnx/backend/test/data/node/test_softplus/model.onnx
index 4c2f549a258..8134a2da809 100644
Binary files a/onnx/backend/test/data/node/test_softplus/model.onnx and b/onnx/backend/test/data/node/test_softplus/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_softplus_example/model.onnx b/onnx/backend/test/data/node/test_softplus_example/model.onnx
index ce4dbff6348..71e49dca204 100644
Binary files a/onnx/backend/test/data/node/test_softplus_example/model.onnx and b/onnx/backend/test/data/node/test_softplus_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_softsign/model.onnx b/onnx/backend/test/data/node/test_softsign/model.onnx
index 08a665a020b..8da75bcf950 100644
Binary files a/onnx/backend/test/data/node/test_softsign/model.onnx and b/onnx/backend/test/data/node/test_softsign/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_softsign_example/model.onnx b/onnx/backend/test/data/node/test_softsign_example/model.onnx
index 08202cbeeb3..215aa383289 100644
Binary files a/onnx/backend/test/data/node/test_softsign_example/model.onnx and b/onnx/backend/test/data/node/test_softsign_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_tan/model.onnx b/onnx/backend/test/data/node/test_tan/model.onnx
index 3d0edfc0314..33166fd26ce 100644
Binary files a/onnx/backend/test/data/node/test_tan/model.onnx and b/onnx/backend/test/data/node/test_tan/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_tan_example/model.onnx b/onnx/backend/test/data/node/test_tan_example/model.onnx
index f03792d990b..36bb4a7a285 100644
Binary files a/onnx/backend/test/data/node/test_tan_example/model.onnx and b/onnx/backend/test/data/node/test_tan_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_thresholdedrelu/model.onnx b/onnx/backend/test/data/node/test_thresholdedrelu/model.onnx
index 32d9a52c9b9..2e7eaf545e2 100644
Binary files a/onnx/backend/test/data/node/test_thresholdedrelu/model.onnx and b/onnx/backend/test/data/node/test_thresholdedrelu/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_thresholdedrelu_default/model.onnx b/onnx/backend/test/data/node/test_thresholdedrelu_default/model.onnx
index bc486141ff9..73ecc6235fa 100644
Binary files a/onnx/backend/test/data/node/test_thresholdedrelu_default/model.onnx and b/onnx/backend/test/data/node/test_thresholdedrelu_default/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_thresholdedrelu_example/model.onnx b/onnx/backend/test/data/node/test_thresholdedrelu_example/model.onnx
index 9745441bd2e..3a4df8b2521 100644
Binary files a/onnx/backend/test/data/node/test_thresholdedrelu_example/model.onnx and b/onnx/backend/test/data/node/test_thresholdedrelu_example/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_training_dropout/model.onnx b/onnx/backend/test/data/node/test_training_dropout/model.onnx
index 2fb3db0fa68..2666f9f7eeb 100644
Binary files a/onnx/backend/test/data/node/test_training_dropout/model.onnx and b/onnx/backend/test/data/node/test_training_dropout/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_training_dropout_default/model.onnx b/onnx/backend/test/data/node/test_training_dropout_default/model.onnx
index 2a02f262702..3dd1fade7c5 100644
Binary files a/onnx/backend/test/data/node/test_training_dropout_default/model.onnx and b/onnx/backend/test/data/node/test_training_dropout_default/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_training_dropout_default_mask/model.onnx b/onnx/backend/test/data/node/test_training_dropout_default_mask/model.onnx
index 73f140c1494..f522d20666f 100644
Binary files a/onnx/backend/test/data/node/test_training_dropout_default_mask/model.onnx and b/onnx/backend/test/data/node/test_training_dropout_default_mask/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_training_dropout_mask/model.onnx b/onnx/backend/test/data/node/test_training_dropout_mask/model.onnx
index 7a2cf92a496..a6ea42104b3 100644
Binary files a/onnx/backend/test/data/node/test_training_dropout_mask/model.onnx and b/onnx/backend/test/data/node/test_training_dropout_mask/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_training_dropout_zero_ratio/model.onnx b/onnx/backend/test/data/node/test_training_dropout_zero_ratio/model.onnx
index 2551754e947..dca24281827 100644
Binary files a/onnx/backend/test/data/node/test_training_dropout_zero_ratio/model.onnx and b/onnx/backend/test/data/node/test_training_dropout_zero_ratio/model.onnx differ
diff --git a/onnx/backend/test/data/node/test_training_dropout_zero_ratio_mask/model.onnx b/onnx/backend/test/data/node/test_training_dropout_zero_ratio_mask/model.onnx
index 58821f231ea..570c0a6e991 100644
Binary files a/onnx/backend/test/data/node/test_training_dropout_zero_ratio_mask/model.onnx and b/onnx/backend/test/data/node/test_training_dropout_zero_ratio_mask/model.onnx differ
diff --git a/onnx/defs/math/defs.cc b/onnx/defs/math/defs.cc
index c315a2a7b7f..9380976dd82 100644
--- a/onnx/defs/math/defs.cc
+++ b/onnx/defs/math/defs.cc
@@ -621,6 +621,35 @@ ONNX_OPERATOR_SET_SCHEMA(
.SetContextDependentFunctionBodyBuilder(BuildContextDependentFunctionBodyGelu)
.TypeAndShapeInferenceFunction(propagateShapeAndTypeFromFirstInput));
+static const char* Swish_ver22_doc = R"DOC(
+Swish function takes one input data (Tensor) and produces one output data (Tensor) of the same shape,
+where $Swish(x) = x * sigmoid(beta * x)$.
+)DOC";
+
+ONNX_OPERATOR_SET_SCHEMA(
+ Swish,
+ 22,
+ OpSchema()
+ .SetDoc(Swish_ver22_doc)
+ .Input(0, "X", "Input tensor", "T", OpSchema::Single, true, 1, OpSchema::Differentiable)
+ .Output(0, "Y", "Output tensor", "T", OpSchema::Single, true, 1, OpSchema::Differentiable)
+ .TypeConstraint(
+ "T",
+ {"tensor(float16)", "tensor(float)", "tensor(bfloat16)"},
+ "Constrain input and output types to float tensors.")
+ .TypeAndShapeInferenceFunction(propagateShapeAndTypeFromFirstInput)
+ .FunctionBody(
+ R"ONNX(
+ {
+ Alpha = Constant ()
+ AlphaCast = CastLike (Alpha, X)
+ AlphaMulX = Mul (AlphaCast, X)
+ SigmoidAlphaMulX = Sigmoid(AlphaMulX)
+ Y = Mul (X, SigmoidAlphaMulX)
+ }
+ )ONNX",
+ 22));
+
static const char* Exp_ver13_doc = R"DOC(
Calculates the exponential of the given input tensor, element-wise.
)DOC";
diff --git a/onnx/defs/operator_sets.h b/onnx/defs/operator_sets.h
index ad2791524e7..5574512fb16 100644
--- a/onnx/defs/operator_sets.h
+++ b/onnx/defs/operator_sets.h
@@ -1234,6 +1234,7 @@ class ONNX_OPERATOR_SET_SCHEMA_CLASS_NAME(Onnx, 22, RNN);
class ONNX_OPERATOR_SET_SCHEMA_CLASS_NAME(Onnx, 22, GRU);
class ONNX_OPERATOR_SET_SCHEMA_CLASS_NAME(Onnx, 22, LSTM);
class ONNX_OPERATOR_SET_SCHEMA_CLASS_NAME(Onnx, 22, GridSample);
+class ONNX_OPERATOR_SET_SCHEMA_CLASS_NAME(Onnx, 22, Swish);
// Iterate over schema from ai.onnx version 22
class OpSet_Onnx_ver22 {
@@ -1287,6 +1288,7 @@ class OpSet_Onnx_ver22 {
fn(GetOpSchema());
fn(GetOpSchema());
fn(GetOpSchema());
+ fn(GetOpSchema());
}
};
diff --git a/onnx/test/version_converter/automatic_upgrade_test.py b/onnx/test/version_converter/automatic_upgrade_test.py
index 10627b8c323..1b2e95913e8 100644
--- a/onnx/test/version_converter/automatic_upgrade_test.py
+++ b/onnx/test/version_converter/automatic_upgrade_test.py
@@ -1301,6 +1301,9 @@ def test_Sum(self) -> None:
attrs={"consumed_inputs": [0]},
)
+ def test_Swish(self) -> None:
+ self._test_op_upgrade("Swish", 22)
+
def test_Tanh(self) -> None:
self._test_op_upgrade("Tanh", 1, attrs={"consumed_inputs": [0]})