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