mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-30 01:32:23 +06:00
Fix flaky test in test_trainer (#7689)
This commit is contained in:
parent
2c9e83f7b8
commit
c6e18de9f8
@ -195,7 +195,9 @@ class TrainerIntegrationTest(unittest.TestCase):
|
||||
args = TrainingArguments("./regression")
|
||||
dict1, dict2 = args.to_dict(), trainer.args.to_dict()
|
||||
for key in dict1.keys():
|
||||
self.assertEqual(dict1[key], dict2[key])
|
||||
# Logging dir can be slightly different as they default to something with the time.
|
||||
if key != "loggin_dir":
|
||||
self.assertEqual(dict1[key], dict2[key])
|
||||
|
||||
def test_reproducible_training(self):
|
||||
# Checks that training worked, model trained and seed made a reproducible training.
|
||||
|
Loading…
Reference in New Issue
Block a user