Tests: replace torch.testing.assert_allclose by torch.testing.assert_close (#29915)

* replace torch.testing.assert_allclose by torch.testing.assert_close

* missing atol rtol
This commit is contained in:
Joao Gante
2024-03-28 09:53:31 +00:00
committed by GitHub
parent 7c19fafe44
commit 248d5d23a2
7 changed files with 30 additions and 34 deletions

View File

@@ -763,7 +763,7 @@ class Umt5IntegrationTest(unittest.TestCase):
]
)
# fmt: on
torch.testing.assert_allclose(input_ids, EXPECTED_IDS)
torch.testing.assert_close(input_ids, EXPECTED_IDS)
generated_ids = model.generate(input_ids.to(torch_device))
EXPECTED_FILLING = [