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
0ef61d39
Commit
0ef61d39
authored
Oct 13, 2021
by
Sylvain Gugger
Browse files
Revert "Skip faulty test"
This reverts commit
5b6bd4e7
.
parent
a5be9541
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
examples/pytorch/test_examples.py
examples/pytorch/test_examples.py
+0
-2
No files found.
examples/pytorch/test_examples.py
View file @
0ef61d39
...
@@ -19,7 +19,6 @@ import json
...
@@ -19,7 +19,6 @@ 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
...
@@ -217,7 +216,6 @@ class ExamplesTests(TestCasePlus):
...
@@ -217,7 +216,6 @@ 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