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
641e5f3f
"...resnet50_tensorflow.git" did not exist on "bd7535b286bedcbc2d6c8acf9197dd43e522547b"
Unverified
Commit
641e5f3f
authored
Mar 21, 2022
by
Suraj Patil
Committed by
GitHub
Mar 21, 2022
Browse files
Fix XGLM cross attention (#16290)
parent
f3938680
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/xglm/modeling_xglm.py
src/transformers/models/xglm/modeling_xglm.py
+1
-1
No files found.
src/transformers/models/xglm/modeling_xglm.py
View file @
641e5f3f
...
...
@@ -399,7 +399,7 @@ class XGLMDecoderLayer(nn.Module):
self
.
activation_dropout
=
config
.
activation_dropout
if
config
.
add_cross_attention
:
self
.
crossattentio
n
=
XGLMAttention
(
self
.
encoder_att
n
=
XGLMAttention
(
embed_dim
=
self
.
embed_dim
,
num_heads
=
config
.
attention_heads
,
dropout
=
config
.
attention_dropout
,
...
...
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