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
632ff3c3
Unverified
Commit
632ff3c3
authored
Mar 17, 2022
by
Suraj Patil
Committed by
GitHub
Mar 17, 2022
Browse files
[FlaxSpeechEncoderDecoderModel] Skip from_encoder_decoder_pretrained (#16236)
* skip the test * fix * fix skip
parent
b6e06c84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tests/speech_encoder_decoder/test_modeling_flax_speech_encoder_decoder.py
...oder_decoder/test_modeling_flax_speech_encoder_decoder.py
+8
-0
No files found.
tests/speech_encoder_decoder/test_modeling_flax_speech_encoder_decoder.py
View file @
632ff3c3
...
...
@@ -691,6 +691,10 @@ class FlaxWav2Vec2GPT2ModelTest(FlaxEncoderDecoderMixin, unittest.TestCase):
self
.
assertEqual
(
len
(
fx_outputs
),
len
(
pt_outputs_loaded
),
"Output lengths differ between Flax and PyTorch"
)
self
.
assert_almost_equals
(
fx_logits
,
pt_logits_loaded
.
numpy
(),
4e-2
)
@
unittest
.
skip
(
"Re-enable this test once this issue is fixed: https://github.com/google/jax/issues/9941"
)
def
test_encoder_decoder_model_from_encoder_decoder_pretrained
(
self
):
pass
@
require_flax
class
FlaxWav2Vec2BartModelTest
(
FlaxEncoderDecoderMixin
,
unittest
.
TestCase
):
...
...
@@ -807,3 +811,7 @@ class FlaxWav2Vec2BartModelTest(FlaxEncoderDecoderMixin, unittest.TestCase):
self
.
assertEqual
(
len
(
fx_outputs
),
len
(
pt_outputs_loaded
),
"Output lengths differ between Flax and PyTorch"
)
self
.
assert_almost_equals
(
fx_logits
,
pt_logits_loaded
.
numpy
(),
4e-2
)
@
unittest
.
skip
(
"Re-enable this test once this issue is fixed: https://github.com/google/jax/issues/9941"
)
def
test_encoder_decoder_model_from_encoder_decoder_pretrained
(
self
):
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