diff --git a/dbms/src/AggregateFunctions/AggregateFunctionMLMethod.cpp b/dbms/src/AggregateFunctions/AggregateFunctionMLMethod.cpp index 71840d4346b..218d3c128c3 100644 --- a/dbms/src/AggregateFunctions/AggregateFunctionMLMethod.cpp +++ b/dbms/src/AggregateFunctions/AggregateFunctionMLMethod.cpp @@ -88,7 +88,7 @@ namespace return std::make_shared( argument_types.size() - 1, - gradient_computer, + std::move(gradient_computer), weights_updater_name, learning_rate, l2_reg_coef,