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
56099c74
Commit
56099c74
authored
May 01, 2018
by
Myle Ott
Browse files
Disallow --batch-size in interactive.py
parent
6532e32b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
interactive.py
interactive.py
+2
-0
No files found.
interactive.py
View file @
56099c74
...
@@ -18,6 +18,8 @@ def main(args):
...
@@ -18,6 +18,8 @@ def main(args):
print
(
args
)
print
(
args
)
assert
not
args
.
sampling
or
args
.
nbest
==
args
.
beam
,
\
assert
not
args
.
sampling
or
args
.
nbest
==
args
.
beam
,
\
'--sampling requires --nbest to be equal to --beam'
'--sampling requires --nbest to be equal to --beam'
assert
not
args
.
max_sentences
,
\
'--max-sentences/--batch-size is not supported in interactive mode'
use_cuda
=
torch
.
cuda
.
is_available
()
and
not
args
.
cpu
use_cuda
=
torch
.
cuda
.
is_available
()
and
not
args
.
cpu
...
...
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