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
4ab6e9e2
Unverified
Commit
4ab6e9e2
authored
Nov 07, 2022
by
Yih-Dar
Committed by
GitHub
Nov 07, 2022
Browse files
Skip 2 tests in `VisionTextDualEncoderProcessorTest` (#20098)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
b77406bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
tests/models/vision_text_dual_encoder/test_processor_vision_text_dual_encoder.py
...t_dual_encoder/test_processor_vision_text_dual_encoder.py
+4
-0
No files found.
tests/models/vision_text_dual_encoder/test_processor_vision_text_dual_encoder.py
View file @
4ab6e9e2
...
...
@@ -76,6 +76,8 @@ class VisionTextDualEncoderProcessorTest(unittest.TestCase):
return
image_inputs
# TODO (Amy): fix me
@
unittest
.
skip
(
"An issue introduced in PR #19796 will be fixed by `AutoImageProcessor`"
)
def
test_save_load_pretrained_default
(
self
):
tokenizer
=
self
.
get_tokenizer
()
feature_extractor
=
self
.
get_feature_extractor
()
...
...
@@ -91,6 +93,8 @@ class VisionTextDualEncoderProcessorTest(unittest.TestCase):
self
.
assertEqual
(
processor
.
feature_extractor
.
to_json_string
(),
feature_extractor
.
to_json_string
())
self
.
assertIsInstance
(
processor
.
feature_extractor
,
ViTFeatureExtractor
)
# TODO (Amy): fix me
@
unittest
.
skip
(
"An issue introduced in PR #19796 will be fixed by `AutoImageProcessor`"
)
def
test_save_load_pretrained_additional_features
(
self
):
processor
=
VisionTextDualEncoderProcessor
(
tokenizer
=
self
.
get_tokenizer
(),
feature_extractor
=
self
.
get_feature_extractor
()
...
...
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