set prediction network to eval mode

This commit is contained in:
Kashif Rasul
2020-01-13 20:01:51 +01:00
parent 8cb33f20c6
commit 0a8e9fdec8
+3
View File
@@ -59,6 +59,9 @@ class PTSPredictor(Predictor):
device=self.device,
dtype=self.dtype,
)
self.prediction_net.eval()
with torch.no_grad():
yield from self.forecast_generator(
inference_data_loader=inference_data_loader,