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
50931d69
Commit
50931d69
authored
May 29, 2018
by
alexeib
Committed by
Myle Ott
Jun 15, 2018
Browse files
fix default params
parent
7f5f2461
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fairseq/models/transformer.py
fairseq/models/transformer.py
+2
-2
No files found.
fairseq/models/transformer.py
View file @
50931d69
...
...
@@ -400,8 +400,8 @@ def base_architecture(args):
args
.
decoder_layers
=
getattr
(
args
,
'decoder_layers'
,
6
)
args
.
decoder_attention_heads
=
getattr
(
args
,
'decoder_attention_heads'
,
8
)
args
.
attention_dropout
=
getattr
(
args
,
'attention_dropout'
,
0.
)
args
.
attention
_dropout
=
getattr
(
args
,
'relu_dropout'
,
0.
)
args
.
attention_
dropout
=
getattr
(
args
,
'dropout'
,
0.1
)
args
.
relu
_dropout
=
getattr
(
args
,
'relu_dropout'
,
0.
)
args
.
dropout
=
getattr
(
args
,
'dropout'
,
0.1
)
@
register_model_architecture
(
'transformer'
,
'transformer_iwslt_de_en'
)
...
...
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