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

Disallow --batch-size in interactive.py

parent 6532e32b
Loading
Loading
Loading
Loading
+2 −0
Changes for interactive.py: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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