We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c8205c commit 2360a51Copy full SHA for 2360a51
src/models/chessmodel.h
@@ -56,9 +56,7 @@ struct ChessModel : Model {
56
57
this->compile(train_loader.batch_size);
58
59
- const int val_epoch_size = epoch_size / 10;
60
-
61
- Timer t {};
+ Timer t {};
62
for (int i = 1; i <= epochs; i++) {
63
t.start();
64
@@ -93,7 +91,7 @@ struct ChessModel : Model {
93
91
}
94
92
95
// Validation phase
96
- for (int b = 1; b <= val_epoch_size / val_loader.batch_size; b++) {
+ for (int b = 1; b <= epoch_size / val_loader.batch_size; b++) {
97
auto* ds = val_loader.next();
98
setup_inputs_and_outputs(ds);
99
0 commit comments