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
d3adb985
"vscode:/vscode.git/clone" did not exist on "5afa497cbfc53c679a9b22997b6312fad57ee2f8"
Unverified
Commit
d3adb985
authored
Oct 05, 2020
by
Sylvain Gugger
Committed by
GitHub
Oct 05, 2020
Browse files
Expand test to locate flakiness (#7580)
parent
b2b7fc78
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 @
d3adb985
...
...
@@ -193,7 +193,9 @@ class TrainerIntegrationTest(unittest.TestCase):
trainer
=
get_regression_trainer
()
trainer
.
train
()
args
=
TrainingArguments
(
"./regression"
)
self
.
assertEqual
(
args
.
to_dict
(),
trainer
.
args
.
to_dict
())
dict1
,
dict2
=
args
.
to_dict
(),
trainer
.
args
.
to_dict
()
for
key
in
dict1
.
keys
():
self
.
assertEqual
(
dict1
[
key
],
dict2
[
key
])
def
test_reproducible_training
(
self
):
# Checks that training worked, model trained and seed made a reproducible training.
...
...
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