Reduce flakiness of dot_test.

PiperOrigin-RevId: 679049273
This commit is contained in:
Daniel Keysers 2024-09-26 01:53:48 -07:00 committed by Copybara-Service
parent e3507190ae
commit 2290eb7d3f
1 changed files with 2 additions and 2 deletions

View File

@ -775,7 +775,7 @@ class DotStats {
// Forward relative error, lower is better.
void CheckRel() const {
ASSERT_INSIDE(kComp2, 2E-4, s_rels[kComp2].GeometricMean(), 3.5E-3);
ASSERT_INSIDE(kComp2, 2E-4, s_rels[kComp2].GeometricMean(), 3.7E-3);
ASSERT_INSIDE(kComp2, 1E-5f, s_rels[kComp2].Max(), 0.4f);
// Compensated is very accurate.
@ -785,7 +785,7 @@ class DotStats {
// Naive and OnlyTwoProd are considerably higher, but not huge.
ASSERT_INSIDE(kNaive, 1E-3, s_rels[kNaive].GeometricMean(), 8E-2);
ASSERT_INSIDE(kOnlyTwoProd, 1E-3, s_rels[kOnlyTwoProd].GeometricMean(),
0.06);
0.065);
// Kahan (FastTwoSum) is decent:
ASSERT_INSIDE(kKahan, 3E-4, s_rels[kKahan].GeometricMean(), 3.5E-3);