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
5b6bd4e7
Commit
5b6bd4e7
authored
Oct 13, 2021
by
Sylvain Gugger
Browse files
Skip faulty test
parent
51ee20fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
examples/pytorch/test_examples.py
examples/pytorch/test_examples.py
+2
-0
No files found.
examples/pytorch/test_examples.py
View file @
5b6bd4e7
...
@@ -19,6 +19,7 @@ import json
...
@@ -19,6 +19,7 @@ import json
import
logging
import
logging
import
os
import
os
import
sys
import
sys
import
unittest
from
unittest.mock
import
patch
from
unittest.mock
import
patch
import
torch
import
torch
...
@@ -216,6 +217,7 @@ class ExamplesTests(TestCasePlus):
...
@@ -216,6 +217,7 @@ class ExamplesTests(TestCasePlus):
self
.
assertGreaterEqual
(
result
[
"eval_accuracy"
],
0.75
)
self
.
assertGreaterEqual
(
result
[
"eval_accuracy"
],
0.75
)
self
.
assertLess
(
result
[
"eval_loss"
],
0.5
)
self
.
assertLess
(
result
[
"eval_loss"
],
0.5
)
@
unittest
.
skip
(
"squad_v2 metric is broken on Datasets apparently, skipping until it's fixed."
)
def
test_run_squad
(
self
):
def
test_run_squad
(
self
):
stream_handler
=
logging
.
StreamHandler
(
sys
.
stdout
)
stream_handler
=
logging
.
StreamHandler
(
sys
.
stdout
)
logger
.
addHandler
(
stream_handler
)
logger
.
addHandler
(
stream_handler
)
...
...
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