diff --git a/src/operator/OperatorTensor.cpp b/src/operator/OperatorTensor.cpp index d3593cc613b926f28720e0f366aedf6e37190f59..7560daf0ed09d79ed1c6655686aa0216542ae26d 100644 --- a/src/operator/OperatorTensor.cpp +++ b/src/operator/OperatorTensor.cpp @@ -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; }