From b82961ba8a9daf475562c86a96c769980ff489d5 Mon Sep 17 00:00:00 2001 From: mrq Date: Sun, 5 Mar 2023 20:13:39 +0000 Subject: [PATCH] typo --- src/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.py b/src/utils.py index 0f83124..1633a76 100755 --- a/src/utils.py +++ b/src/utils.py @@ -760,9 +760,9 @@ class TrainingState(): self.metrics['step'] = [f"{self.epoch}/{self.epochs}"] if self.epochs != self.its: - self.metric.append(f"{self.it}/{self.its}") + self.metrics.append(f"{self.it}/{self.its}") if steps > 1: - self.metric.append(f"{step}/{steps}") + self.metrics.append(f"{step}/{steps}") self.metrics['step'] = ", ".join(self.metrics['step']) if lapsed: @@ -818,7 +818,7 @@ class TrainingState(): deriv = 0 accum_length = len(self.losses)//2 # i *guess* this is fine when you think about it loss_value = self.losses[-1]["value"] - + for i in range(accum_length): d1_loss = self.losses[accum_length-i-1]["value"] d2_loss = self.losses[accum_length-i-2]["value"]