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
a735f727
Unverified
Commit
a735f727
authored
Mar 23, 2021
by
Sylvain Gugger
Committed by
GitHub
Mar 23, 2021
Browse files
Fix test_trainer_distributed (#10875)
parent
8c297cdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/test_trainer_distributed.py
tests/test_trainer_distributed.py
+2
-2
No files found.
tests/test_trainer_distributed.py
View file @
a735f727
...
...
@@ -119,7 +119,7 @@ if __name__ == "__main__":
p
=
trainer
.
predict
(
dataset
)
logger
.
info
(
p
.
metrics
)
if
p
.
metrics
[
"
eval
_success"
]
is
not
True
:
if
p
.
metrics
[
"
test
_success"
]
is
not
True
:
logger
.
error
(
p
.
metrics
)
exit
(
1
)
...
...
@@ -133,7 +133,7 @@ if __name__ == "__main__":
p
=
trainer
.
predict
(
dataset
)
logger
.
info
(
p
.
metrics
)
if
p
.
metrics
[
"
eval
_success"
]
is
not
True
:
if
p
.
metrics
[
"
test
_success"
]
is
not
True
:
logger
.
error
(
p
.
metrics
)
exit
(
1
)
...
...
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