diff --git a/include/aidge/operator/Move.hpp b/include/aidge/operator/Move.hpp index 3652cf9697c6bcfea4befe4cdcdf5b9efff8b70c..2db7d49af979f8497c5853cc8e39947c9ba7ea7e 100644 --- a/include/aidge/operator/Move.hpp +++ b/include/aidge/operator/Move.hpp @@ -39,7 +39,11 @@ public: Move_Op(const Move_Op& op) : OperatorTensor(op) { - mImpl = op.mImpl ? Registrar<Move_Op>::create({mInputs[0]->getImpl()->backend(), mOutputs[0]->getImpl()->backend()})(*this) : nullptr; + if (op.mImpl){ + SET_IMPL_MACRO(Move_Op, *this, op.mOutputs[0]->getImpl()->backend()); + }else{ + mImpl = nullptr; + } } /**