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
71dccd07
Unverified
Commit
71dccd07
authored
Feb 03, 2022
by
Yih-Dar
Committed by
GitHub
Feb 03, 2022
Browse files
fix (#15494)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
5ec368d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/marian/modeling_tf_marian.py
src/transformers/models/marian/modeling_tf_marian.py
+1
-1
No files found.
src/transformers/models/marian/modeling_tf_marian.py
View file @
71dccd07
...
@@ -1450,7 +1450,7 @@ class TFMarianMTModel(TFMarianPreTrainedModel, TFCausalLanguageModelingLoss):
...
@@ -1450,7 +1450,7 @@ class TFMarianMTModel(TFMarianPreTrainedModel, TFCausalLanguageModelingLoss):
decoder_hidden_states
=
outputs
.
decoder_hidden_states
,
# index 2 of d outputs
decoder_hidden_states
=
outputs
.
decoder_hidden_states
,
# index 2 of d outputs
decoder_attentions
=
outputs
.
decoder_attentions
,
# index 3 of d outputs
decoder_attentions
=
outputs
.
decoder_attentions
,
# index 3 of d outputs
cross_attentions
=
outputs
.
cross_attentions
,
# index 4 of d outputs
cross_attentions
=
outputs
.
cross_attentions
,
# index 4 of d outputs
encoder_last_hidden_state
=
outputs
.
last_hidden_state
,
# index 0 of encoder outputs
encoder_last_hidden_state
=
outputs
.
encoder_
last_hidden_state
,
# index 0 of encoder outputs
encoder_hidden_states
=
outputs
.
encoder_hidden_states
,
# 1 of e out
encoder_hidden_states
=
outputs
.
encoder_hidden_states
,
# 1 of e out
encoder_attentions
=
outputs
.
encoder_attentions
,
# 2 of e out
encoder_attentions
=
outputs
.
encoder_attentions
,
# 2 of e out
)
)
...
...
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