From 7c3fabbe6a9ca7fda2b0f20e9c7212bf1e95dc9c Mon Sep 17 00:00:00 2001 From: Maxence Naud <maxence.naud@cea.fr> Date: Fri, 12 Jan 2024 13:38:56 +0000 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) --- include/aidge/operator/Producer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/aidge/operator/Producer.hpp b/include/aidge/operator/Producer.hpp index 1e082e73a..fe9b044e2 100644 --- a/include/aidge/operator/Producer.hpp +++ b/include/aidge/operator/Producer.hpp @@ -110,7 +110,7 @@ public: if (getAttr<ProdAttr::Constant>()) { AIDGE_THROW_OR_ABORT(std::runtime_error, "Producer is constant, cannot update output."); } - OperatorTensor::setOutput(outputIdx, data); + OperatorTensor::setOutput(outputIdx, std::move(data)); } void setOutput(const Aidge::IOIndex_t outputIdx, const std::shared_ptr<Aidge::Data>& data) override { -- GitLab