diff --git a/src/operator/OperatorTensor.cpp b/src/operator/OperatorTensor.cpp index 12ea0193d77c23525c172c81e11870c6f8e14020..178ea35a846093894e4d2b22fef5d06c0bd52981 100644 --- a/src/operator/OperatorTensor.cpp +++ b/src/operator/OperatorTensor.cpp @@ -173,7 +173,7 @@ bool Aidge::OperatorTensor::forwardDType(){ Log::debug("Running default forwardDtype for operator {}", type()); - if (inputsAssociated()) { + if (inputsAssociated(false)) { const auto expectedDType = getInput(0)->dataType(); for (std::size_t i = 1; i < nbInputs(); ++i) { if (inputCategory(i) == InputCategory::OptionalParam @@ -182,7 +182,7 @@ bool Aidge::OperatorTensor::forwardDType(){ continue; } if (expectedDType != getInput(i)->dataType()) { - Log::notice("{} operator's inputs should have the same datatype: expected {} (input #0), given {} (input #{})", + Log::info("{} operator's inputs should have the same datatype: expected {} (input #0), given {} (input #{})", type(), expectedDType, getInput(i)->dataType(), i); return false; } @@ -194,6 +194,8 @@ bool Aidge::OperatorTensor::forwardDType(){ mOutputs[o]->setDataType(expectedDType); } return true; + }else{ + Log::info("Inputs are not associated, fail to forward data types."); } return false;