提交 b7ea5873 编写于 作者: H helinwang 提交者: GitHub

Merge pull request #3434 from PaddlePaddle/cpplint

fix cpplint error
...@@ -68,7 +68,7 @@ void NewRemoteParameterUpdater::init( ...@@ -68,7 +68,7 @@ void NewRemoteParameterUpdater::init(
LOG(INFO) << "paddle_begin_init_params start"; LOG(INFO) << "paddle_begin_init_params start";
// NOTE: convert V1 OptimizatioinConfig proto to V2 OptimizerConfig. // NOTE: convert V1 OptimizatioinConfig proto to V2 OptimizerConfig.
// This makes golang pserver compatible with handy V1 demos. // This makes golang pserver compatible with handy V1 demos.
// TODO: Refine or remove these ugly converting lines // TODO(wuyi): Refine or remove these ugly converting lines
OptimizerConfig optimizerConfigV2; OptimizerConfig optimizerConfigV2;
if (trainerConfig_.learning_method() == "momentum") { if (trainerConfig_.learning_method() == "momentum") {
optimizerConfigV2.set_optimizer(paddle::OptimizerConfig::SGD); optimizerConfigV2.set_optimizer(paddle::OptimizerConfig::SGD);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册