Commit 56099c74 authored by Myle Ott's avatar Myle Ott
Browse files

Disallow --batch-size in interactive.py

parent 6532e32b
......@@ -18,6 +18,8 @@ def main(args):
print(args)
assert not args.sampling or args.nbest == args.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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment