Skip to content
Snippets Groups Projects
Commit 1759bd0b authored by Franck Dary's avatar Franck Dary
Browse files

Made print more pretty

parent 8a10a847
No related branches found
No related tags found
No related merge requests found
...@@ -29,10 +29,13 @@ int main(int argc, char * argv[]) ...@@ -29,10 +29,13 @@ int main(int argc, char * argv[])
Trainer trainer(machine); Trainer trainer(machine);
trainer.createDataset(config); trainer.createDataset(config);
for (int i = 0; i < 5; i++) int nbEpoch = 5;
for (int i = 0; i < nbEpoch; i++)
{ {
float loss = trainer.epoch(); float loss = trainer.epoch();
fmt::print("\nEpoch {} loss = {}\n", i+1, loss); fmt::print("\r{:80}", " ");
fmt::print("\rEpoch {}/{} loss = {}\n", i+1, nbEpoch, loss);
} }
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment