From 97586b95020312ed75c993b1865b3810b1f38b95 Mon Sep 17 00:00:00 2001 From: jatin Date: Tue, 14 Nov 2023 06:14:09 +0000 Subject: [PATCH] More test tweaks --- test/src/sigmoid_approx_test.cpp | 2 +- test/src/tanh_approx_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/sigmoid_approx_test.cpp b/test/src/sigmoid_approx_test.cpp index db16b30..cb647ca 100644 --- a/test/src/sigmoid_approx_test.cpp +++ b/test/src/sigmoid_approx_test.cpp @@ -6,7 +6,7 @@ TEST_CASE ("Sigmoid Approx Test") { - const auto all_floats = test_helpers::all_32_bit_floats (-20.0f, 20.0f, 1.0e-5f); + const auto all_floats = test_helpers::all_32_bit_floats (-20.0f, 20.0f, 1.0e-3f); const auto y_exact = test_helpers::compute_all (all_floats, [] (auto x) { return 1.0f / (1.0f + std::exp (-x)); }); diff --git a/test/src/tanh_approx_test.cpp b/test/src/tanh_approx_test.cpp index 3031eed..f4d1ddb 100644 --- a/test/src/tanh_approx_test.cpp +++ b/test/src/tanh_approx_test.cpp @@ -6,7 +6,7 @@ TEST_CASE ("Tanh Approx Test") { - const auto all_floats = test_helpers::all_32_bit_floats (-10.0f, 10.0f, 1.0e-5f); + const auto all_floats = test_helpers::all_32_bit_floats (-10.0f, 10.0f, 1.0e-3f); const auto y_exact = test_helpers::compute_all (all_floats, [] (auto x) { return std::tanh (x); });