Skip to content

Commit

Permalink
fix: prevent iteration increment in validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jaketae authored May 24, 2021
1 parent 20d8b3b commit 5af10c2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion trainer/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def _valid_epoch(self):
self.model.eval()

for batch in tqdm(self.valid_loader, leave=False):
self.iteration += 1
pitch, text, mel = to_device(batch, self.device)

pred = self.model(pitch, text)
Expand Down

0 comments on commit 5af10c2

Please sign in to comment.