diff --git a/onnxruntime/test/providers/cpu/math/clip_test.cc b/onnxruntime/test/providers/cpu/math/clip_test.cc index 460f22a3db0c7..7a31562a6883e 100644 --- a/onnxruntime/test/providers/cpu/math/clip_test.cc +++ b/onnxruntime/test/providers/cpu/math/clip_test.cc @@ -138,7 +138,7 @@ TEST(MathOpTest, Clip_MLFloat16) { } TEST(MathOpTest, Clip_MLFloat16_NoMin_NoMax) { - OpTester test("Clip", 13); + OpTester test("Clip", 12); std::vector dims{3}; test.AddInput("X", dims, @@ -150,7 +150,7 @@ TEST(MathOpTest, Clip_MLFloat16_NoMin_NoMax) { } TEST(MathOpTest, Clip_MLFloat16_NoMax) { - OpTester test("Clip", 13); + OpTester test("Clip", 12); std::vector dims{3}; test.AddInput("X", dims, @@ -163,7 +163,7 @@ TEST(MathOpTest, Clip_MLFloat16_NoMax) { } TEST(MathOpTest, Clip_MLFloat16_NoMin) { - OpTester test("Clip", 13); + OpTester test("Clip", 12); std::vector dims{3}; test.AddInput("X", dims, @@ -176,45 +176,6 @@ TEST(MathOpTest, Clip_MLFloat16_NoMin) { test.Run(); } -TEST(MathOpTest, Clip_BFloat16_NoMin_NoMax) { - OpTester test("Clip", 13); - - std::vector dims{3}; - test.AddInput("X", dims, - {BFloat16(-1.0f), BFloat16(-2.0f), BFloat16(3.0f)}); - test.AddOutput("Y", dims, - {BFloat16(-1.0f), BFloat16(-2.0f), BFloat16(3.0f)}); - - test.Run(); -} - -TEST(MathOpTest, Clip_BFloat16_NoMax) { - OpTester test("Clip", 13); - - std::vector dims{3}; - test.AddInput("X", dims, - {BFloat16(-1.0f), BFloat16(-2.0f), BFloat16(3.0f)}); - test.AddInput("min", {}, {BFloat16(0.0f)}); - test.AddOutput("Y", dims, - {BFloat16(0.0f), BFloat16(0.0f), BFloat16(3.0f)}); - - test.Run(); -} - -TEST(MathOpTest, Clip_BFloat16_NoMin) { - OpTester test("Clip", 13); - - std::vector dims{3}; - test.AddInput("X", dims, - {BFloat16(-1.0f), BFloat16(-2.0f), BFloat16(3.0f)}); - test.AddOptionalInputEdge(); // no min - test.AddInput("max", {}, {BFloat16(0.0f)}); - test.AddOutput("Y", dims, - {BFloat16(-1.0f), BFloat16(-2.0f), BFloat16(0.0f)}); - - test.Run(); -} - TEST(MathOpTest, Clip_int32) { OpTester test("Clip", 12);