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
Fairseq
Commits
12a47a64
Commit
12a47a64
authored
May 08, 2018
by
alexeib
Committed by
Myle Ott
Jun 15, 2018
Browse files
fix flag copy paste (decoder-normalize-before)
parent
f6a5a54e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fairseq/models/transformer.py
fairseq/models/transformer.py
+1
-1
No files found.
fairseq/models/transformer.py
View file @
12a47a64
...
@@ -301,7 +301,7 @@ class TransformerDecoderLayer(nn.Module):
...
@@ -301,7 +301,7 @@ class TransformerDecoderLayer(nn.Module):
)
)
self
.
dropout
=
args
.
dropout
self
.
dropout
=
args
.
dropout
self
.
relu_dropout
=
args
.
relu_dropout
self
.
relu_dropout
=
args
.
relu_dropout
self
.
normalize_before
=
args
.
e
n
coder_normalize_before
self
.
normalize_before
=
args
.
d
ecoder_normalize_before
self
.
encoder_attn
=
MultiheadAttention
(
self
.
encoder_attn
=
MultiheadAttention
(
self
.
embed_dim
,
args
.
decoder_attention_heads
,
self
.
embed_dim
,
args
.
decoder_attention_heads
,
dropout
=
args
.
attention_dropout
,
dropout
=
args
.
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