提交 647f9a0f 编写于 作者: Q qiaolongfei

do not init localUpdater

上级 8ff42cd3
...@@ -32,8 +32,7 @@ ParameterUpdater *ParameterUpdater::createRemoteUpdater( ...@@ -32,8 +32,7 @@ ParameterUpdater *ParameterUpdater::createRemoteUpdater(
OptimizationConfig *config, int passCount) { OptimizationConfig *config, int passCount) {
auto updater = new ParameterUpdater(); auto updater = new ParameterUpdater();
std::unique_ptr<paddle::ParameterUpdater> localUpdater; std::unique_ptr<paddle::ParameterUpdater> localUpdater;
localUpdater.reset(new paddle::SgdThreadUpdater(config->m->getConfig())); updater->m->updater.reset(new paddle::RemoteParameterUpdater(
updater->m->updater.reset(new paddle::ConcurrentRemoteParameterUpdater(
config->m->getConfig(), passCount, std::move(localUpdater))); config->m->getConfig(), passCount, std::move(localUpdater)));
return updater; return updater;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册