Skip to content
Snippets Groups Projects
Commit 08480c2a authored by Tamino Huxohl's avatar Tamino Huxohl
Browse files

fix another bug in eval method

parent 2da7d4f2
No related branches found
No related tags found
No related merge requests found
......@@ -112,8 +112,8 @@ class AbstractTraining:
def _eval_epoch(self):
torch.set_grad_enabled(False)
for model in self.models:
model.eval()
for param in self.training_params:
param.model.eval()
loss = 0.0
data_loader = self.data_loaders["validation"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment