MCPcopy Create free account
hub / github.com/dmlc/parameter_server / create

Method create

src/ps_main.cc:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3namespace PS {
4
5App* App::create(const string& name, const string& conf) {
6 auto my_role = Postoffice::instance().myNode().role();
7 if (my_role == Node::SERVER) {
8 return CreateServerNode(conf);
9 } else {
10 return new App();
11 }
12}
13} // namespace PS
14
15int main(int argc, char *argv[]) {

Callers

nothing calls this directly

Calls 2

CreateServerNodeFunction · 0.85
roleMethod · 0.45

Tested by

no test coverage detected