fix tolerance for a bloom slow test (#17634)

This commit is contained in:
Younes Belkada 2022-06-14 18:14:12 +02:00 committed by GitHub
parent 120649bf3a
commit d453ea6120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -723,7 +723,7 @@ class BloomEmbeddingTest(unittest.TestCase):
}
if cuda_available:
self.assertEqual(MEAN_VALUE_LAST_LM, logits.last_hidden_state.mean().item())
self.assertAlmostEqual(MEAN_VALUE_LAST_LM, logits.last_hidden_state.mean().item(), places=4)
else:
self.assertAlmostEqual(MEAN_VALUE_LAST_LM, logits.last_hidden_state.mean().item(), places=3)