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
63cc30e7
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "93bd2f7099d289c00441a84da71e02331b8d4bd7"
Unverified
Commit
63cc30e7
authored
Jun 29, 2023
by
MS Kim(tony9402)
Committed by
GitHub
Jun 29, 2023
Browse files
Fix Typo (#24559)
parent
ae454f41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/fsmt/modeling_fsmt.py
src/transformers/models/fsmt/modeling_fsmt.py
+1
-1
No files found.
src/transformers/models/fsmt/modeling_fsmt.py
View file @
63cc30e7
...
@@ -770,7 +770,7 @@ class FSMTDecoder(nn.Module):
...
@@ -770,7 +770,7 @@ class FSMTDecoder(nn.Module):
x
+=
positions
x
+=
positions
x
=
nn
.
functional
.
dropout
(
x
,
p
=
self
.
dropout
,
training
=
self
.
training
)
x
=
nn
.
functional
.
dropout
(
x
,
p
=
self
.
dropout
,
training
=
self
.
training
)
# Convert to FSMT output format: (seq_len,
BS,
model_dim) -> (
BS,
seq_len, model_dim)
# Convert to FSMT output format: (
BS,
seq_len, model_dim) -> (seq_len,
BS,
model_dim)
x
=
x
.
transpose
(
0
,
1
)
x
=
x
.
transpose
(
0
,
1
)
encoder_hidden_states
=
encoder_hidden_states
.
transpose
(
0
,
1
)
encoder_hidden_states
=
encoder_hidden_states
.
transpose
(
0
,
1
)
...
...
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