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

If forward() calls generateScheduling(), then mStaticSchedule should be cleared

parent 3e041bf9
No related branches found
No related tags found
1 merge request!11Removed padding from conv and pool and added Pad operator
......@@ -107,6 +107,7 @@ void Aidge::SequentialScheduler::generateScheduling(bool verbose) {
// Push consumers in the list of nodes to run and update the consumer producer system
for (const auto& runnable : runnableConsumers) {
if (verbose) printf("Runnable: %s\n", (runnable->type() + "_" + std::to_string(reinterpret_cast<uintptr_t>(runnable.get()))).c_str());
runnable->getOperator()->updateConsummerProducer();
mStaticSchedule.push_back(runnable);
}
......@@ -178,6 +179,7 @@ void Aidge::SequentialScheduler::forward(bool forwardDims, bool verbose) {
std::set<std::shared_ptr<Node>> computationOver;
mScheduling.clear();
mStaticSchedule.clear();
this->generateScheduling();
......
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