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
eaa576b0
Commit
eaa576b0
authored
Jul 19, 2018
by
Sergey Edunov
Browse files
Pass sampling-temperature trough to the generator in interactive.py
parent
ac5fddfc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
interactive.py
interactive.py
+1
-1
No files found.
interactive.py
View file @
eaa576b0
...
...
@@ -90,7 +90,7 @@ def main(args):
models
,
tgt_dict
,
beam_size
=
args
.
beam
,
stop_early
=
(
not
args
.
no_early_stop
),
normalize_scores
=
(
not
args
.
unnormalized
),
len_penalty
=
args
.
lenpen
,
unk_penalty
=
args
.
unkpen
,
sampling
=
args
.
sampling
,
sampling_topk
=
args
.
sampling_topk
,
minlen
=
args
.
min_len
,
minlen
=
args
.
min_len
,
sampling_temperature
=
args
.
sampling_temperature
)
if
use_cuda
:
...
...
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