From 4a06636ad386cae951443e55f3297e81345dbebb Mon Sep 17 00:00:00 2001 From: cmoineau <cyril.moineau@cea.fr> Date: Thu, 27 Mar 2025 13:38:15 +0000 Subject: [PATCH] Remove Gather::forwardDType(). --- include/aidge/operator/Gather.hpp | 6 ------ src/operator/Gather.cpp | 9 +-------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/include/aidge/operator/Gather.hpp b/include/aidge/operator/Gather.hpp index 4ce9f7a49..8bd8239ec 100644 --- a/include/aidge/operator/Gather.hpp +++ b/include/aidge/operator/Gather.hpp @@ -111,12 +111,6 @@ public: */ bool forwardDims(bool allowDataDependency = false) override final; - /** - * @brief Forward the data type. - * @return True if successful, false otherwise. - */ - bool forwardDType() override final; - /** * @brief Set the backend for the operator. * @param name The name of the backend. diff --git a/src/operator/Gather.cpp b/src/operator/Gather.cpp index ccef5ec53..a4cb4aab0 100644 --- a/src/operator/Gather.cpp +++ b/src/operator/Gather.cpp @@ -59,14 +59,7 @@ bool Aidge::Gather_Op::dimsForwarded() const { return OperatorTensor::dimsForwarded(); } -bool Aidge::Gather_Op::forwardDType(){ - if (inputsAssociated()) { - mOutputs[0]->setDataType(getInput(0)->dataType()); - return true; - } - Log::notice("Gather_Op: No input associated, failed to forward data type."); - return false; -} + bool Aidge::Gather_Op::forwardDims(bool allowDataDependency) { if (inputsAssociated()) { // Copy optional input #1, if present, to attribute Indices -- GitLab