mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 08:21:49 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			51 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 8caf31352140d655e2c88fb9784982c4e5db3b5b Mon Sep 17 00:00:00 2001
 | |
| From: sudotac <sudo@tofuyard.net>
 | |
| Date: Sun, 6 Aug 2023 23:46:28 +0900
 | |
| Subject: [PATCH] Remove MATH_NO_EXCEPT macro
 | |
| 
 | |
| Signed-off-by: sudotac <sudo@tofuyard.net>
 | |
| ---
 | |
|  .../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 04fbd05669..5ec4d915f5 100644
 | |
| --- a/onnxruntime/test/providers/cpu/math/element_wise_ops_test.cc
 | |
| +++ b/onnxruntime/test/providers/cpu/math/element_wise_ops_test.cc
 | |
| @@ -2603,13 +2603,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 <float (&op)(float value) MATH_NO_EXCEPT>
 | |
| +template <float (&op)(float value)>
 | |
|  void TrigFloatTest(OpTester& test, std::initializer_list<float> input) {
 | |
|    std::vector<int64_t> dims{static_cast<int64_t>(input.size())};
 | |
|  
 | |
| @@ -2622,7 +2616,7 @@ void TrigFloatTest(OpTester& test, std::initializer_list<float> input) {
 | |
|    test.Run();
 | |
|  }
 | |
|  
 | |
| -template <double (&op)(double value) MATH_NO_EXCEPT>
 | |
| +template <double (&op)(double value)>
 | |
|  void TrigDoubleTest(OpTester& test, std::initializer_list<double> input,
 | |
|                      const std::unordered_set<std::string> excluded_provider_types = {}) {
 | |
|    std::vector<int64_t> dims{static_cast<int64_t>(input.size())};
 | |
| @@ -2636,7 +2630,7 @@ void TrigDoubleTest(OpTester& test, std::initializer_list<double> input,
 | |
|    test.Run(OpTester::ExpectResult::kExpectSuccess, "", excluded_provider_types);
 | |
|  }
 | |
|  
 | |
| -template <float (&op)(float value) MATH_NO_EXCEPT>
 | |
| +template <float (&op)(float value)>
 | |
|  void TrigFloat16Test(OpTester& test, std::initializer_list<float> input) {
 | |
|    std::vector<int64_t> dims{static_cast<int64_t>(input.size())};
 | |
|  
 | |
| -- 
 | |
| 2.41.0
 | |
| 
 |