diff --git a/include/aidge/operator/Scaling.hpp b/include/aidge/operator/Scaling.hpp index 4ef39f63a2f9af34cd3fe28b01cf2fc195bdfc6e..9465667babb0978e33de3cf9f155d9b2e9d495b4 100644 --- a/include/aidge/operator/Scaling.hpp +++ b/include/aidge/operator/Scaling.hpp @@ -23,6 +23,9 @@ #include "aidge/utils/StaticAttributes.hpp" #include "aidge/utils/Types.h" +//Caution: This operator is now deprecated and should no longer be used. +//It has been replaced by the MetaOperator "Quantizer" (located directly in aidge_quantization). + namespace Aidge { enum class ScalingAttr { ScalingFactor, QuantizedNbBits, IsOutputUnsigned diff --git a/src/operator/Scaling.cpp b/src/operator/Scaling.cpp index 5ac08cd2245e0caa3ca7072c70ccc69bcfcf9558..268a14cf9759a6e03302680814778da4804dcc19 100644 --- a/src/operator/Scaling.cpp +++ b/src/operator/Scaling.cpp @@ -18,6 +18,10 @@ #include "aidge/utils/Registrar.hpp" #include "aidge/utils/Types.h" + +//Caution: This operator is now deprecated and should no longer be used. +//It has been replaced by the MetaOperator "Quantizer" (located directly in aidge_quantization). + const std::string Aidge::Scaling_Op::Type = "Scaling"; Aidge::Scaling_Op::Scaling_Op(float scalingFactor, std::size_t nbBits, bool isOutputUnsigned) @@ -26,12 +30,15 @@ Aidge::Scaling_Op::Scaling_Op(float scalingFactor, std::size_t nbBits, bool isOu attr<ScalingAttr::ScalingFactor>(scalingFactor), attr<ScalingAttr::QuantizedNbBits>(nbBits), attr<ScalingAttr::IsOutputUnsigned>(isOutputUnsigned))) -{} +{ + Log::warn("Caution: The [Scaling] operator is now deprecated and should no longer be used.\nIt has been replaced by the MetaOperator [Quantizer] (located directly in aidge_quantization)."); +} Aidge::Scaling_Op::Scaling_Op(const Aidge::Scaling_Op& op) : OperatorTensor(op), mAttributes(op.mAttributes) { + Log::warn("Caution: The [Scaling] operator is now deprecated and should no longer be used. \nIt has been replaced by the MetaOperator [Quantizer] (located directly in aidge_quantization)."); if (op.mImpl){ SET_IMPL_MACRO(Scaling_Op, *this, op.backend()); } else {