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; }