MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Register

Method Register

tensorflow/core/distributed_runtime/server_lib.cc:39–46  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

37
38/* static */
39void ServerFactory::Register(const string& server_type,
40 ServerFactory* factory) {
41 mutex_lock l(*get_server_factory_lock());
42 if (!server_factories()->insert({server_type, factory}).second) {
43 LOG(ERROR) << "Two server factories are being registered under "
44 << server_type;
45 }
46}
47
48/* static */
49Status ServerFactory::GetFactory(const ServerDef& server_def,

Callers

nothing calls this directly

Calls 3

get_server_factory_lockFunction · 0.85
server_factoriesFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected