We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95f20b9 commit cfbb4c4Copy full SHA for cfbb4c4
paddle/trainer/TrainerMain.cpp
@@ -37,9 +37,10 @@ int main(int argc, char** argv) {
37
initMain(argc, argv);
38
initPython(argc, argv);
39
40
+ std::unique_ptr<PServerUtil> pServerPtr(nullptr);
41
if (FLAGS_start_pserver) {
- PServerUtil* pServerUtil = paddle::PServerUtil::createWithGflags();
42
- pServerUtil->start();
+ pServerPtr.reset(paddle::PServerUtil::createWithGflags());
43
+ pServerPtr->start();
44
}
45
Trainer trainer;
46
auto config = TrainerConfigHelper::createFromFlags();
0 commit comments