From 87e65d662deedd7ade66ab06d0601599f08a7219 Mon Sep 17 00:00:00 2001 From: cmoineau <cyril.moineau@cea.fr> Date: Sun, 23 Mar 2025 19:14:08 +0000 Subject: [PATCH] OperatorTensor::forwarDType no longer require in tensor to be defined. --- src/operator/OperatorTensor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/operator/OperatorTensor.cpp b/src/operator/OperatorTensor.cpp index 12ea0193d..178ea35a8 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; -- GitLab