Skip to content

Commit

Permalink
remove unneeded move (pessimization)
Browse files Browse the repository at this point in the history
  • Loading branch information
foolnotion committed Dec 16, 2023
1 parent 88752e1 commit 8b8bafa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/operon/optimizer/optimizer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ struct SGDOptimizer final : public OptimizerBase<DTable> {

SGDOptimizer(DTable const& dtable, Problem const& problem, UpdateRule::LearningRateUpdateRule const& update)
: OptimizerBase<DTable>{dtable, problem}
, update_{std::move(update.Clone(0))}
, update_{update.Clone(0)}
{ }

[[nodiscard]] auto Optimize(Operon::RandomGenerator& rng, Operon::Tree const& tree) const -> OptimizerSummary final
Expand Down

0 comments on commit 8b8bafa

Please sign in to comment.