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

do not init localUpdater

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