From cee99447fd8fbb20244a9cb73c9b48d0c2facc50 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Wed, 28 Dec 2016 14:29:47 +0800 Subject: [PATCH] udw nullptr as localUpdater --- paddle/api/ParameterUpdater.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paddle/api/ParameterUpdater.cpp b/paddle/api/ParameterUpdater.cpp index 33aa11850cc..75b0ae7cb6c 100644 --- a/paddle/api/ParameterUpdater.cpp +++ b/paddle/api/ParameterUpdater.cpp @@ -31,9 +31,8 @@ ParameterUpdater *ParameterUpdater::createLocalUpdater( ParameterUpdater *ParameterUpdater::createRemoteUpdater( OptimizationConfig *config, int passCount) { auto updater = new ParameterUpdater(); - std::unique_ptr localUpdater; updater->m->updater.reset(new paddle::RemoteParameterUpdater( - config->m->getConfig(), passCount, std::move(localUpdater))); + config->m->getConfig(), passCount, nullptr)); return updater; } -- GitLab