From 188be4073ff0342f44a68bd5010ddc69619c8b40 Mon Sep 17 00:00:00 2001 From: Nikhil Dev Goyal Date: Mon, 27 Apr 2026 06:25:20 -0700 Subject: [PATCH] Tighten bounds in TestFastGelu to catch any regressions PiperOrigin-RevId: 906319757 --- ops/ops_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 =