Skip to content

Commit

Permalink
remove opt step from test
Browse files Browse the repository at this point in the history
  • Loading branch information
fpaissan authored Nov 15, 2023
1 parent 1008077 commit 9fb50f3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion micromind/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,6 @@ def test(self, datasets: Dict = {}) -> None:
for idx, batch in enumerate(pbar):
if isinstance(batch, list):
batch = [b.to(self.device) for b in batch]
self.opt.zero_grad()

model_out = self(batch)
loss = self.compute_loss(model_out, batch)
Expand Down

0 comments on commit 9fb50f3

Please sign in to comment.