diff --git a/docs/Operators.md b/docs/Operators.md index 4b714f8ae8f..971021cbdab 100644 --- a/docs/Operators.md +++ b/docs/Operators.md @@ -4637,9 +4637,9 @@ expect( name="test_clip_splitbounds", ) -x = np.array([-1, 0, 6]).astype(np.float32) -y = np.array([1, 1, 1]).astype(np.float32) # Value of max when min>max. -min_val = np.float32(2) # Min greater than max. +x = np.array([-2, 0, 6]).astype(np.float32) +y = np.array([1, 1, 1]).astype(np.float32) +min_val = np.float32(2) max_val = np.float32(1) expect( node, diff --git a/docs/TestCoverage.md b/docs/TestCoverage.md index 8a8c32a2035..52953cfc024 100644 --- a/docs/TestCoverage.md +++ b/docs/TestCoverage.md @@ -3284,9 +3284,9 @@ expect( name="test_clip_splitbounds", ) -x = np.array([-1, 0, 6]).astype(np.float32) -y = np.array([1, 1, 1]).astype(np.float32) # Value of max when min>max. -min_val = np.float32(2) # Min greater than max. +x = np.array([-2, 0, 6]).astype(np.float32) +y = np.array([1, 1, 1]).astype(np.float32) +min_val = np.float32(2) max_val = np.float32(1) expect( node, diff --git a/onnx/backend/test/case/node/clip.py b/onnx/backend/test/case/node/clip.py index 3730fb74df1..c9b9e6f6fdd 100644 --- a/onnx/backend/test/case/node/clip.py +++ b/onnx/backend/test/case/node/clip.py @@ -60,7 +60,7 @@ def export() -> None: name="test_clip_splitbounds", ) - x = np.array([-1, 0, 6]).astype(np.float32) + x = np.array([-2, 0, 6]).astype(np.float32) y = np.array([1, 1, 1]).astype(np.float32) min_val = np.float32(2) max_val = np.float32(1) diff --git a/onnx/backend/test/data/node/test_clip_min_greater_than_max/test_data_set_0/input_0.pb b/onnx/backend/test/data/node/test_clip_min_greater_than_max/test_data_set_0/input_0.pb index ff367a29bdd..f40ec6d68e3 100644 Binary files a/onnx/backend/test/data/node/test_clip_min_greater_than_max/test_data_set_0/input_0.pb and b/onnx/backend/test/data/node/test_clip_min_greater_than_max/test_data_set_0/input_0.pb differ diff --git a/onnx/backend/test/data/node/test_clip_min_greater_than_max_expanded/test_data_set_0/input_0.pb b/onnx/backend/test/data/node/test_clip_min_greater_than_max_expanded/test_data_set_0/input_0.pb index ff367a29bdd..f40ec6d68e3 100644 Binary files a/onnx/backend/test/data/node/test_clip_min_greater_than_max_expanded/test_data_set_0/input_0.pb and b/onnx/backend/test/data/node/test_clip_min_greater_than_max_expanded/test_data_set_0/input_0.pb differ diff --git a/onnx/backend/test/data/node/test_image_decoder_decode_jpeg_grayscale/model.onnx b/onnx/backend/test/data/node/test_image_decoder_decode_jpeg_grayscale/model.onnx index 4a643cede44..ce3d324718a 100644 Binary files a/onnx/backend/test/data/node/test_image_decoder_decode_jpeg_grayscale/model.onnx and b/onnx/backend/test/data/node/test_image_decoder_decode_jpeg_grayscale/model.onnx differ diff --git a/onnx/backend/test/data/node/test_image_decoder_decode_jpeg_grayscale/test_data_set_0/input_0.pb b/onnx/backend/test/data/node/test_image_decoder_decode_jpeg_grayscale/test_data_set_0/input_0.pb index 4436a575c7e..1f4de55432d 100644 Binary files a/onnx/backend/test/data/node/test_image_decoder_decode_jpeg_grayscale/test_data_set_0/input_0.pb and b/onnx/backend/test/data/node/test_image_decoder_decode_jpeg_grayscale/test_data_set_0/input_0.pb differ diff --git a/onnx/backend/test/data/node/test_image_decoder_decode_jpeg_grayscale/test_data_set_0/output_0.pb b/onnx/backend/test/data/node/test_image_decoder_decode_jpeg_grayscale/test_data_set_0/output_0.pb index 763045579db..dc2111caa95 100644 Binary files a/onnx/backend/test/data/node/test_image_decoder_decode_jpeg_grayscale/test_data_set_0/output_0.pb and b/onnx/backend/test/data/node/test_image_decoder_decode_jpeg_grayscale/test_data_set_0/output_0.pb differ