Use mode.eval() in decoding.
This commit is contained in:
parent
c1fc004df5
commit
ca9be09cc1
@ -88,6 +88,7 @@ def main():
|
|||||||
logging.info("Decoding started")
|
logging.info("Decoding started")
|
||||||
|
|
||||||
model = torch.jit.load(params.nn_model_filename)
|
model = torch.jit.load(params.nn_model_filename)
|
||||||
|
model.eval()
|
||||||
|
|
||||||
device = torch.device("cpu")
|
device = torch.device("cpu")
|
||||||
if torch.cuda.is_available() and not hasattr(
|
if torch.cuda.is_available() and not hasattr(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user