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
3f0707b2
Commit
3f0707b2
authored
Aug 11, 2022
by
Sylvain Gugger
Browse files
Skip broken tests
parent
4c8ec66a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tests/models/owlvit/test_modeling_owlvit.py
tests/models/owlvit/test_modeling_owlvit.py
+2
-1
No files found.
tests/models/owlvit/test_modeling_owlvit.py
View file @
3f0707b2
...
@@ -733,8 +733,9 @@ def prepare_img():
...
@@ -733,8 +733,9 @@ def prepare_img():
@
require_vision
@
require_vision
@
require_torch
@
require_torch
@
unittest
.
skip
(
"These tests are broken, fix me Alara"
)
class
OwlViTModelIntegrationTest
(
unittest
.
TestCase
):
class
OwlViTModelIntegrationTest
(
unittest
.
TestCase
):
#
@slow
@
slow
def
test_inference
(
self
):
def
test_inference
(
self
):
model_name
=
"google/owlvit-base-patch32"
model_name
=
"google/owlvit-base-patch32"
model
=
OwlViTModel
.
from_pretrained
(
model_name
).
to
(
torch_device
)
model
=
OwlViTModel
.
from_pretrained
(
model_name
).
to
(
torch_device
)
...
...
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