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
b844f8a9
Unverified
Commit
b844f8a9
authored
Mar 29, 2023
by
Younes Belkada
Committed by
GitHub
Mar 29, 2023
Browse files
[`Pix2Struct`] Fix slow test (#22448)
fix slow test
parent
55dae94c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/pix2struct/test_modeling_pix2struct.py
tests/models/pix2struct/test_modeling_pix2struct.py
+1
-1
No files found.
tests/models/pix2struct/test_modeling_pix2struct.py
View file @
b844f8a9
...
@@ -406,7 +406,7 @@ class Pix2StructTextImageModelTest(ModelTesterMixin, unittest.TestCase):
...
@@ -406,7 +406,7 @@ class Pix2StructTextImageModelTest(ModelTesterMixin, unittest.TestCase):
def
test_model
(
self
):
def
test_model
(
self
):
config
,
input_dict
=
self
.
model_tester
.
prepare_config_and_inputs_for_common
()
config
,
input_dict
=
self
.
model_tester
.
prepare_config_and_inputs_for_common
()
for
model_class
in
self
.
all_model_classes
:
for
model_class
in
self
.
all_model_classes
:
model
=
model_class
(
config
)
model
=
model_class
(
config
)
.
to
(
torch_device
)
output
=
model
(
**
input_dict
)
output
=
model
(
**
input_dict
)
self
.
assertEqual
(
self
.
assertEqual
(
...
...
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