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
b84070b7
Commit
b84070b7
authored
Apr 06, 2018
by
Myle Ott
Browse files
Fix LSTM
parent
871be389
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fairseq/models/lstm.py
fairseq/models/lstm.py
+3
-3
No files found.
fairseq/models/lstm.py
View file @
b84070b7
...
...
@@ -419,7 +419,7 @@ def base_architecture(args):
args
.
decoder_hidden_size
=
getattr
(
args
,
'decoder_hidden_size'
,
512
)
args
.
decoder_layers
=
getattr
(
args
,
'decoder_layers'
,
1
)
args
.
decoder_out_embed_dim
=
getattr
(
args
,
'decoder_out_embed_dim'
,
512
)
args
.
decoder_attention
=
getattr
(
args
,
'decoder_attention'
,
True
)
args
.
decoder_attention
=
getattr
(
args
,
'decoder_attention'
,
'1'
)
args
.
decoder_dropout_in
=
getattr
(
args
,
'decoder_dropout_in'
,
args
.
dropout
)
args
.
decoder_dropout_out
=
getattr
(
args
,
'decoder_dropout_out'
,
args
.
dropout
)
...
...
@@ -437,7 +437,7 @@ def lstm_wiseman_iwslt_de_en(args):
args
.
decoder_hidden_size
=
256
args
.
decoder_layers
=
1
args
.
decoder_out_embed_dim
=
256
args
.
decoder_attention
=
True
args
.
decoder_attention
=
'1'
args
.
decoder_dropout_in
=
0
...
...
@@ -453,5 +453,5 @@ def lstm_luong_wmt_en_de(args):
args
.
decoder_hidden_size
=
1000
args
.
decoder_layers
=
4
args
.
decoder_out_embed_dim
=
1000
args
.
decoder_attention
=
True
args
.
decoder_attention
=
'1'
args
.
decoder_dropout_out
=
0
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