Skip to content

Commit f882ab2

Browse files
committed
Fix broken epoch calculation
1 parent 2783b14 commit f882ab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/chessmodel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ struct ChessModel : Model {
104104
}
105105
}
106106

107-
float epoch_loss = total_epoch_loss / (val_epoch_size / train_loader.batch_size);
107+
float epoch_loss = total_epoch_loss / (epoch_size / train_loader.batch_size);
108108
float val_loss = (val_loader.has_value())
109109
? total_val_loss / (val_epoch_size / val_loader->batch_size)
110110
: 0;

0 commit comments

Comments
 (0)