diff --git a/src/operator/OperatorTensor.cpp b/src/operator/OperatorTensor.cpp index 050d823ae9a7e7bb3270cf65f9802a8f57d9a6e2..e1b803c145fc13bb0caf6df1c839f874341ae72a 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;