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
OpenDAS
apex
Commits
bcf9d067
Commit
bcf9d067
authored
Nov 19, 2021
by
Hubert Lu
Browse files
Bug fix for self_multihead_attn_norm_add
parent
15498555
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
apex/contrib/multihead_attn/self_multihead_attn.py
apex/contrib/multihead_attn/self_multihead_attn.py
+1
-1
No files found.
apex/contrib/multihead_attn/self_multihead_attn.py
View file @
bcf9d067
...
...
@@ -160,7 +160,7 @@ class SelfMultiheadAttn(nn.Module):
outputs
=
self
.
attn_func
(
attn_mask
is
not
None
,
is_training
,
self
.
num_heads
,
self
.
scaling
,
lyr_nrm_results
,
input_weights
,
self
.
out_proj_weight
,
input_bias
,
self
.
out_proj_bias
,
mask
,
self
.
dropout
)
mask
,
self
.
mask_additive
,
self
.
dropout
)
if
is_training
:
outputs
=
jit_dropout_add
(
outputs
,
query
,
self
.
dropout
,
is_training
)
else
:
...
...
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