mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
AutoformerForPrediction test add atol (#36017)
This commit is contained in:
parent
be2ac0916a
commit
1feebb5b41
@ -481,4 +481,4 @@ class AutoformerModelIntegrationTests(unittest.TestCase):
|
||||
|
||||
expected_slice = torch.tensor([3130.6763, 4056.5293, 7053.0786], device=torch_device)
|
||||
mean_prediction = outputs.sequences.mean(dim=1)
|
||||
torch.testing.assert_close(mean_prediction[0, -3:], expected_slice, rtol=1e-1)
|
||||
torch.testing.assert_close(mean_prediction[0, -3:], expected_slice, rtol=1e-1, atol=1e-1)
|
||||
|
Loading…
Reference in New Issue
Block a user