Byebye torch 1.10 (#28207)
* fix * fix --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -906,7 +906,6 @@ class UniSpeechSatModelIntegrationTest(unittest.TestCase):
|
||||
)
|
||||
self.assertEqual(labels[0, :, 0].sum(), 270)
|
||||
self.assertEqual(labels[0, :, 1].sum(), 647)
|
||||
# TODO: update the tolerance after the CI moves to torch 1.10
|
||||
self.assertTrue(torch.allclose(outputs.logits[:, :4], expected_logits, atol=1e-2))
|
||||
|
||||
def test_inference_speaker_verification(self):
|
||||
@@ -931,5 +930,4 @@ class UniSpeechSatModelIntegrationTest(unittest.TestCase):
|
||||
# id10002 vs id10004
|
||||
self.assertAlmostEqual(cosine_sim(embeddings[2], embeddings[3]).item(), 0.5616, 3)
|
||||
|
||||
# TODO: update the tolerance after the CI moves to torch 1.10
|
||||
self.assertAlmostEqual(outputs.loss.item(), 18.5925, 2)
|
||||
|
||||
Reference in New Issue
Block a user