Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
6f9d8dc1
Unverified
Commit
6f9d8dc1
authored
Apr 04, 2022
by
Sanchit Gandhi
Committed by
GitHub
Apr 04, 2022
Browse files
[SpeechEncoderDecoderModel] Correct Encoder Last Hidden State Output (#16586)
parent
dad5ca83
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/speech_encoder_decoder/modeling_speech_encoder_decoder.py
...speech_encoder_decoder/modeling_speech_encoder_decoder.py
+1
-1
No files found.
src/transformers/models/speech_encoder_decoder/modeling_speech_encoder_decoder.py
View file @
6f9d8dc1
...
@@ -572,7 +572,7 @@ class SpeechEncoderDecoderModel(PreTrainedModel):
...
@@ -572,7 +572,7 @@ class SpeechEncoderDecoderModel(PreTrainedModel):
decoder_hidden_states
=
decoder_outputs
.
hidden_states
,
decoder_hidden_states
=
decoder_outputs
.
hidden_states
,
decoder_attentions
=
decoder_outputs
.
attentions
,
decoder_attentions
=
decoder_outputs
.
attentions
,
cross_attentions
=
decoder_outputs
.
cross_attentions
,
cross_attentions
=
decoder_outputs
.
cross_attentions
,
encoder_last_hidden_state
=
encoder_
outputs
.
last_
hidden_state
,
encoder_last_hidden_state
=
encoder_hidden_state
s
,
encoder_hidden_states
=
encoder_outputs
.
hidden_states
,
encoder_hidden_states
=
encoder_outputs
.
hidden_states
,
encoder_attentions
=
encoder_outputs
.
attentions
,
encoder_attentions
=
encoder_outputs
.
attentions
,
)
)
...
...
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