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); });