xswang / xflow

Distributed LR、 FM model on Parameter Server. FTRL and SGD Optimization Algorithm.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

【HELP】in file src/main.cc the api ps::Start(); is lost param?

xjj210130 opened this issue · comments

hi all:
I don't know the API come from.
ps::Start(); in file src/main.cc
meanwhile, i find the ps-lite api is following:
inline void Start(int customer_id, const char* argv0 = nullptr) {
Postoffice::Get()->Start(customer_id, argv0, true);
}

hi,xjj210130,
ps::Start will call the function: inline void Start(const char* argv0 = nullptr) , this function is in file of ps-lite/include/ps/ps.h, the parameter argv0 is a default parameter, it`s value is default to be nullptr, so it will work.