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
1fb22af4
Commit
1fb22af4
authored
Jun 07, 2018
by
alexeib
Committed by
Myle Ott
Jun 15, 2018
Browse files
initialize normalization constant for fconv_lm
parent
f4108909
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
fairseq/models/fconv.py
fairseq/models/fconv.py
+1
-0
No files found.
fairseq/models/fconv.py
View file @
1fb22af4
...
@@ -606,6 +606,7 @@ def base_lm_architecture(args):
...
@@ -606,6 +606,7 @@ def base_lm_architecture(args):
args
.
decoder_layers
=
getattr
(
args
,
'decoder_layers'
,
'[(1268, 4)] * 13'
)
args
.
decoder_layers
=
getattr
(
args
,
'decoder_layers'
,
'[(1268, 4)] * 13'
)
args
.
decoder_attention
=
getattr
(
args
,
'decoder_attention'
,
'False'
)
args
.
decoder_attention
=
getattr
(
args
,
'decoder_attention'
,
'False'
)
args
.
adaptive_softmax_cutoff
=
getattr
(
args
,
'adaptive_softmax_cutoff'
,
None
)
args
.
adaptive_softmax_cutoff
=
getattr
(
args
,
'adaptive_softmax_cutoff'
,
None
)
args
.
normalization_constant
=
getattr
(
args
,
'normalization_constant'
,
0.5
)
@
register_model_architecture
(
'fconv'
,
'fconv'
)
@
register_model_architecture
(
'fconv'
,
'fconv'
)
...
...
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