Skip to content
Snippets Groups Projects
Commit 7d9a0c8a authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Merge branch 'dev' into log

parents 75bea6b9 5d804604
No related branches found
No related tags found
2 merge requests!105version 0.2.0,!90Introduce Aidge::Log facility for messages logging
Pipeline #40627 passed
......@@ -451,16 +451,15 @@ void Aidge::SequentialScheduler::forward(bool forwardDims, bool verbose, std::ve
this->generateScheduling(verbose);
}
std::map<std::shared_ptr<Node>, std::string> namePtrTable;
if (verbose) namePtrTable = mGraphView->getRankedNodesName("{0} ({1}#{3})");
const auto namePtrTable = mGraphView->getRankedNodesName("{0} ({1}#{3})");
size_t cpt = 0;
for (const auto& runnable : mStaticSchedule.at(mStaticScheduleStep)) {
if (verbose)
fmt::print("run: {}\n", namePtrTable[runnable]);
fmt::print("run: {}\n", namePtrTable.at(runnable));
else
drawProgressBar(static_cast<float>(cpt) / static_cast<float>(mStaticSchedule.size()), 50,
(std::string("running ") + namePtrTable[runnable]));
(std::string("running ") + namePtrTable.at(runnable)));
const auto tStart = std::chrono::high_resolution_clock::now();
runnable->forward();
const auto tEnd = std::chrono::high_resolution_clock::now();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment