提交 33ddc893 编写于 作者: D dongzhihong

formatter in docker

上级 a166e529
...@@ -28,9 +28,9 @@ ParameterOptimizer *ParameterOptimizer::Create(const std::string &config_proto, ...@@ -28,9 +28,9 @@ ParameterOptimizer *ParameterOptimizer::Create(const std::string &config_proto,
}; };
LrPolicy *lr = select_lr_policy(config); LrPolicy *lr = select_lr_policy(config);
auto select_optimizer = auto select_optimizer = [=](
[=](Tensor *parameter, Tensor *parameter,
const OptimizerConfig &config) -> ParameterOptimizer * { const OptimizerConfig &config) -> ParameterOptimizer * {
if (config.optimizer() == OptimizerConfig::SGD) { if (config.optimizer() == OptimizerConfig::SGD) {
return new SGDOptimizer(parameter, return new SGDOptimizer(parameter,
lr, lr,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册