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

Hot fix of blocking issue for MR

parent 13ccdecd
No related branches found
No related tags found
1 merge request!152Update Aidge export to take a graph view has an argument instead of a...
......@@ -638,16 +638,16 @@ Aidge::Elts_t Aidge::Scheduler::getNbAvailableData(const std::shared_ptr<Node>&
// We are inside an upper operator (for instance a MetaOperator)
// We need to connect the "local" producer-consumer model to the upper
// one, by mapping local node inputs to the upper node inputs.
IOIndex_t nodeInputIdx = 0;
IOIndex_t upperInputIdx = 0;
for (const auto& input : mGraphView->getOrderedInputs()) {
if (input.first == node) {
if (input.first == node && input.second == inputIdx) {
// Current node is an input
const auto upperInput = upperNode->inputs()[nodeInputIdx];
if (upperInput.first && nodeInputIdx == inputIdx) {
const auto upperInput = upperNode->inputs()[upperInputIdx];
if (upperInput.first) {
return upperInput.first->getOperator()->getNbProducedData(upperInput.second);
}
}
++nodeInputIdx;
++upperInputIdx;
}
}
......
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