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

Exclude parameter inputs from "still consumer" check

parent cda1e068
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,9 @@ std::vector<std::shared_ptr<Aidge::Scheduler::StaticSchedulingElement>> Aidge::S
// be put back in the consumers list once the remaining consumers
// have been exhausted.
bool isStillConsumer = false;
for (IOIndex_t inputIdx = 0; inputIdx < consumer->nbInputs(); ++inputIdx) {
// Only look for data inputs. If no data is available on data input,
// by definition, no parameter can be consumed on parameter inputs.
for (IOIndex_t inputIdx = 0; inputIdx < consumer->nbData(); ++inputIdx) {
AIDGE_LOG_CONTEXT("Consumer node {} input #{}", namePtrTable.at(consumer), inputIdx);
if (consumer->getOperator()->getNbConsumedData(inputIdx) <
......
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