Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
c6e18de9
Unverified
Commit
c6e18de9
authored
Oct 09, 2020
by
Sylvain Gugger
Committed by
GitHub
Oct 09, 2020
Browse files
Fix flaky test in test_trainer (#7689)
parent
2c9e83f7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tests/test_trainer.py
tests/test_trainer.py
+3
-1
No files found.
tests/test_trainer.py
View file @
c6e18de9
...
...
@@ -195,6 +195,8 @@ class TrainerIntegrationTest(unittest.TestCase):
args
=
TrainingArguments
(
"./regression"
)
dict1
,
dict2
=
args
.
to_dict
(),
trainer
.
args
.
to_dict
()
for
key
in
dict1
.
keys
():
# 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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment