From 8caf31352140d655e2c88fb9784982c4e5db3b5b Mon Sep 17 00:00:00 2001 From: sudotac Date: Sun, 6 Aug 2023 23:46:28 +0900 Subject: [PATCH] Remove MATH_NO_EXCEPT macro Signed-off-by: sudotac --- .../test/providers/cpu/math/element_wise_ops_test.cc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/onnxruntime/test/providers/cpu/math/element_wise_ops_test.cc b/onnxruntime/test/providers/cpu/math/element_wise_ops_test.cc index d87ee86175..6243486dd7 100644 --- a/onnxruntime/test/providers/cpu/math/element_wise_ops_test.cc +++ b/onnxruntime/test/providers/cpu/math/element_wise_ops_test.cc @@ -3678,13 +3678,7 @@ TEST(MathOpTest, Mean_8) { test.Run(OpTester::ExpectResult::kExpectSuccess, "", {kTensorrtExecutionProvider}); // TensorRT: Input batch size is inconsistent } -#ifdef _LIBCPP_VERSION -#define MATH_NO_EXCEPT -#else -#define MATH_NO_EXCEPT noexcept -#endif - -template +template void TrigFloatTest(OpTester& test, std::initializer_list input, float abs_error = -1.0f) { std::vector dims{static_cast(input.size())}; @@ -3702,7 +3696,7 @@ void TrigFloatTest(OpTester& test, std::initializer_list input, float abs test.Run(); } -template +template void TrigDoubleTest(OpTester& test, std::initializer_list input, const std::unordered_set excluded_provider_types = {}) { std::vector dims{static_cast(input.size())}; @@ -3716,7 +3710,7 @@ void TrigDoubleTest(OpTester& test, std::initializer_list input, test.Run(OpTester::ExpectResult::kExpectSuccess, "", excluded_provider_types); } -template +template void TrigFloat16Test(OpTester& test, std::initializer_list input) { std::vector dims{static_cast(input.size())}; -- 2.41.0