From 455e54d4c00998092c0afc61e31eb5fcf1803013 Mon Sep 17 00:00:00 2001 From: Pedro Larroy Date: Sun, 10 Feb 2019 22:58:21 +0100 Subject: [PATCH] Fix --- src/operator/operator_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operator/operator_common.h b/src/operator/operator_common.h index a8447912ac7d..c1e1cc696afb 100644 --- a/src/operator/operator_common.h +++ b/src/operator/operator_common.h @@ -446,7 +446,7 @@ inline std::vector MakeNonlossGradNode( p->inputs.insert(p->inputs.end(), inputs.begin(), inputs.end()); std::vector ret; for (uint32_t i = 0; i < p->num_outputs(); ++i) { - ret.emplace_back(std::move(p), i, 0); + ret.emplace_back(p, i, 0); } return ret; }