Skip to content

Commit

Permalink
More test tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Nov 14, 2023
1 parent d72769d commit 97586b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/src/sigmoid_approx_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)); });

Expand Down
2 changes: 1 addition & 1 deletion test/src/tanh_approx_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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); });

Expand Down

0 comments on commit 97586b9

Please sign in to comment.