From cffa1b7bf22f95d07d59fa4bc87d6ddc2d9ebaa5 Mon Sep 17 00:00:00 2001 From: Hariharan Seshadri Date: Tue, 5 May 2020 02:08:13 -0700 Subject: [PATCH] Fix (#3812) --- onnxruntime/test/global_thread_pools/test_inference.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/test/global_thread_pools/test_inference.cc b/onnxruntime/test/global_thread_pools/test_inference.cc index daeabcb373..e3179361c7 100644 --- a/onnxruntime/test/global_thread_pools/test_inference.cc +++ b/onnxruntime/test/global_thread_pools/test_inference.cc @@ -58,7 +58,7 @@ static void RunSession(OrtAllocator& allocator, Ort::Session& session_object, OutT* f = output_tensor->GetTensorMutableData(); for (size_t i = 0; i != static_cast(5); ++i) { - ASSERT_TRUE(abs(values_y[i] - f[i]) < 1e-6); + ASSERT_TRUE(std::abs(values_y[i] - f[i]) < 1e-6); } }