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

Fixed detail in print

parent 35a22b34
No related branches found
No related tags found
No related merge requests found
......@@ -188,7 +188,7 @@ int MacaonTrain::main()
}
machine.saveLast();
trainer.saveOptimizer(optimizerCheckpoint);
if (!debug)
if (printAdvancement)
fmt::print(stderr, "\r{:80}\r", "");
std::string iterStr = fmt::format("[{}] Epoch {:^5} loss = {:6.1f} dev = {} {:5}", util::getTime(), fmt::format("{}/{}", currentEpoch+1, nbEpoch), loss, devScoresStr, saved ? "SAVED" : "");
fmt::print(stderr, "{}\n", iterStr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment