diff --git a/ops/ops_test.cc b/ops/ops_test.cc index 3e291ee8..2e21ec28 100644 --- a/ops/ops_test.cc +++ b/ops/ops_test.cc @@ -503,7 +503,7 @@ struct TestFastGelu { gcpp::HWY_NAMESPACE::FastGelu(result.data(), result.size()); for (size_t i = 0; i < values.size(); i++) { - const float max_error = IsBF16() ? 0.02f : 0.002f; + const float max_error = IsBF16() ? 0.007f : 1e-5f; const float x = hwy::ConvertScalarTo(values[i]); const float actual = hwy::ConvertScalarTo(result[i]); const float expected =