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

Minor fix for dummy outputs

parent a9d6dbd9
No related branches found
No related tags found
2 merge requests!105version 0.2.0,!77Support for recurrent networks
Pipeline #39502 passed
......@@ -141,7 +141,9 @@ bool Aidge::OperatorTensor::outputDimsForwarded() const {
forwarded &= mInputs[i] ? !(getInput(i)->empty()) : false;
}
for (IOIndex_t i = 0; i < nbOutputs(); ++i) {
forwarded &= !(getOutput(i)->empty());
// If getOutput(i) is nullptr, ignore this output (it may be a dummy
// output in a MetaOperator)
forwarded &= (getOutput(i)) ? !(getOutput(i)->empty()) : true;
}
return forwarded;
}
......
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