Use mode.eval() in decoding.

This commit is contained in:
Fangjun Kuang 2022-07-25 21:19:33 +08:00
parent c1fc004df5
commit ca9be09cc1

View File

@ -88,6 +88,7 @@ def main():
logging.info("Decoding started")
model = torch.jit.load(params.nn_model_filename)
model.eval()
device = torch.device("cpu")
if torch.cuda.is_available() and not hasattr(