From a166e5291dfd2a6f6894fe8d9bd961eb2421c541 Mon Sep 17 00:00:00 2001 From: dongzhihong Date: Tue, 20 Jun 2017 03:20:04 +0800 Subject: [PATCH] "formatter in docker" --- paddle/optimizer/parameter_optimizer.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/paddle/optimizer/parameter_optimizer.cc b/paddle/optimizer/parameter_optimizer.cc index a7362f07807..38fa2bfde93 100644 --- a/paddle/optimizer/parameter_optimizer.cc +++ b/paddle/optimizer/parameter_optimizer.cc @@ -26,10 +26,11 @@ ParameterOptimizer *ParameterOptimizer::Create(const std::string &config_proto, LOG(WARNING) << " have not select any LrPolicy. use ConstLr in default"; return new ConstLr(0.1); }; + LrPolicy *lr = select_lr_policy(config); - auto select_optimizer = [=]( - Tensor *parameter, - const OptimizerConfig &config) -> ParameterOptimizer * { + auto select_optimizer = + [=](Tensor *parameter, + const OptimizerConfig &config) -> ParameterOptimizer * { if (config.optimizer() == OptimizerConfig::SGD) { return new SGDOptimizer(parameter, lr, -- GitLab