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
9bd5d97c
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "b972125ced4b60120e8bea606065059e3412d4ec"
Unverified
Commit
9bd5d97c
authored
Sep 02, 2021
by
Patrick von Platen
Committed by
GitHub
Sep 02, 2021
Browse files
up (#13396)
parent
efa4f5f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/test_modeling_speech_encoder_decoder.py
tests/test_modeling_speech_encoder_decoder.py
+2
-2
No files found.
tests/test_modeling_speech_encoder_decoder.py
View file @
9bd5d97c
...
@@ -493,8 +493,8 @@ class Speech2TextBertModelTest(EncoderDecoderMixin, unittest.TestCase):
...
@@ -493,8 +493,8 @@ class Speech2TextBertModelTest(EncoderDecoderMixin, unittest.TestCase):
@
require_torch
@
require_torch
class
Wav2Vec2Speech2Text2
(
EncoderDecoderMixin
,
unittest
.
TestCase
):
class
Wav2Vec2Speech2Text2
(
EncoderDecoderMixin
,
unittest
.
TestCase
):
def
get_encoder_decoder_model
(
self
,
config
,
decoder_config
):
def
get_encoder_decoder_model
(
self
,
config
,
decoder_config
):
encoder_model
=
Wav2Vec2Model
(
config
)
encoder_model
=
Wav2Vec2Model
(
config
)
.
eval
()
decoder_model
=
Speech2Text2ForCausalLM
(
decoder_config
)
decoder_model
=
Speech2Text2ForCausalLM
(
decoder_config
)
.
eval
()
return
encoder_model
,
decoder_model
return
encoder_model
,
decoder_model
def
prepare_config_and_inputs
(
self
):
def
prepare_config_and_inputs
(
self
):
...
...
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