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
8bb52bd2
Unverified
Commit
8bb52bd2
authored
Feb 08, 2021
by
Julien Plu
Committed by
GitHub
Feb 08, 2021
Browse files
Disable temporarily too slow tests (Longformer/LED) (#10062)
* Disable temporarily too slow tests * Fix style * Fix template
parent
b1aa4982
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
+28
-4
tests/test_modeling_tf_led.py
tests/test_modeling_tf_led.py
+16
-4
tests/test_modeling_tf_longformer.py
tests/test_modeling_tf_longformer.py
+12
-0
No files found.
tests/test_modeling_tf_led.py
View file @
8bb52bd2
...
...
@@ -353,10 +353,6 @@ class TFLEDModelTest(TFModelTesterMixin, unittest.TestCase):
self
.
assertEqual
(
model
.
config
.
output_hidden_states
,
True
)
check_encoder_attentions_output
(
outputs
)
def
test_saved_model_creation
(
self
):
# This test is too long (>30sec) and makes fail the CI
pass
def
test_mixed_precision
(
self
):
# TODO JP: Make LED float16 compliant
pass
...
...
@@ -377,6 +373,22 @@ class TFLEDModelTest(TFModelTesterMixin, unittest.TestCase):
# Need to check with PVP how to properly fix this
pass
@
slow
def
test_saved_model_with_hidden_states_output
(
self
):
# Temporarily disable this test in order to find
# how to better handle it without timing out the CI
pass
def
test_saved_model_creation
(
self
):
# This test is too long (>30sec) and makes fail the CI
pass
@
slow
def
test_saved_model_creation_extended
(
self
):
# Temporarily disable this test in order to find
# how to better handle it without timing out the CI
pass
def
_assert_tensors_equal
(
a
,
b
,
atol
=
1e-12
,
prefix
=
""
):
"""If tensors not close, or a and b arent both tensors, raise a nice Assertion error."""
...
...
tests/test_modeling_tf_longformer.py
View file @
8bb52bd2
...
...
@@ -351,10 +351,22 @@ class TFLongformerModelTest(TFModelTesterMixin, unittest.TestCase):
# Need to check with PVP how to properly fix this
pass
@
slow
def
test_saved_model_with_hidden_states_output
(
self
):
# Temporarily disable this test in order to find
# how to better handle it without timing out the CI
pass
def
test_saved_model_creation
(
self
):
# This test is too long (>30sec) and makes fail the CI
pass
@
slow
def
test_saved_model_creation_extended
(
self
):
# Temporarily disable this test in order to find
# how to better handle it without timing out the CI
pass
def
test_mixed_precision
(
self
):
# TODO JP: Make Longformer float16 compliant
pass
...
...
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