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
7f5f2461
Commit
7f5f2461
authored
May 29, 2018
by
alexeib
Committed by
Myle Ott
Jun 15, 2018
Browse files
use adaptive softmax only with adaptive loss
parent
7d560402
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
fairseq/models/fconv.py
fairseq/models/fconv.py
+2
-1
No files found.
fairseq/models/fconv.py
View file @
7f5f2461
...
@@ -139,7 +139,8 @@ class FConvLanguageModel(FairseqLanguageModel):
...
@@ -139,7 +139,8 @@ class FConvLanguageModel(FairseqLanguageModel):
max_positions
=
args
.
max_target_positions
,
max_positions
=
args
.
max_target_positions
,
share_embed
=
False
,
share_embed
=
False
,
positional_embeddings
=
False
,
positional_embeddings
=
False
,
adaptive_softmax_cutoff
=
options
.
eval_str_list
(
args
.
adaptive_softmax_cutoff
,
type
=
int
),
adaptive_softmax_cutoff
=
options
.
eval_str_list
(
args
.
adaptive_softmax_cutoff
,
type
=
int
)
if
args
.
criterion
==
'adaptive_loss'
else
None
,
normalization_constant
=
args
.
normalization_constant
,
normalization_constant
=
args
.
normalization_constant
,
)
)
return
FConvLanguageModel
(
decoder
)
return
FConvLanguageModel
(
decoder
)
...
...
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