We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42e5b99 commit b8cacb0Copy full SHA for b8cacb0
word_language_model/generate.py
@@ -46,6 +46,7 @@
46
47
with open(args.checkpoint, 'rb') as f:
48
model = torch.load(f)
49
+model.eval()
50
51
if args.cuda:
52
model.cuda()
0 commit comments