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
7c45fe74
Commit
7c45fe74
authored
Mar 03, 2022
by
Sylvain Gugger
Browse files
Mark slow tests as slow
parent
3822e4a5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
tests/detr/test_modeling_detr.py
tests/detr/test_modeling_detr.py
+5
-0
tests/maskformer/test_modeling_maskformer.py
tests/maskformer/test_modeling_maskformer.py
+1
-0
No files found.
tests/detr/test_modeling_detr.py
View file @
7c45fe74
...
@@ -229,6 +229,11 @@ class DetrModelTest(ModelTesterMixin, GenerationTesterMixin, unittest.TestCase):
...
@@ -229,6 +229,11 @@ class DetrModelTest(ModelTesterMixin, GenerationTesterMixin, unittest.TestCase):
def
test_resize_tokens_embeddings
(
self
):
def
test_resize_tokens_embeddings
(
self
):
pass
pass
@
slow
def
test_model_outputs_equivalence
(
self
):
# TODO Niels: fix me!
pass
def
test_attention_outputs
(
self
):
def
test_attention_outputs
(
self
):
config
,
inputs_dict
=
self
.
model_tester
.
prepare_config_and_inputs_for_common
()
config
,
inputs_dict
=
self
.
model_tester
.
prepare_config_and_inputs_for_common
()
config
.
return_dict
=
True
config
.
return_dict
=
True
...
...
tests/maskformer/test_modeling_maskformer.py
View file @
7c45fe74
...
@@ -161,6 +161,7 @@ class MaskFormerModelTester:
...
@@ -161,6 +161,7 @@ class MaskFormerModelTester:
@
require_torch
@
require_torch
@
slow
class
MaskFormerModelTest
(
ModelTesterMixin
,
unittest
.
TestCase
):
class
MaskFormerModelTest
(
ModelTesterMixin
,
unittest
.
TestCase
):
all_model_classes
=
(
MaskFormerModel
,
MaskFormerForInstanceSegmentation
)
if
is_torch_available
()
else
()
all_model_classes
=
(
MaskFormerModel
,
MaskFormerForInstanceSegmentation
)
if
is_torch_available
()
else
()
...
...
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