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

Method Create

tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:449–463  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

447
448/* static */
449Status GrpcServer::Create(const ServerDef& server_def, Env* env,
450 std::unique_ptr<ServerInterface>* out_server) {
451 std::unique_ptr<GrpcServer> ret(
452 new GrpcServer(server_def, env == nullptr ? Env::Default() : env));
453 ServiceInitFunction service_func = nullptr;
454 GrpcServerOptions options;
455 options.rendezvous_mgr_func = NewRpcRendezvousMgr;
456 Status s = ret->Init(options);
457 if (!s.ok()) {
458 LOG(ERROR) << s;
459 return s;
460 }
461 *out_server = std::move(ret);
462 return Status::OK();
463}
464
465/* static */
466Status GrpcServer::Create(const ServerDef& server_def, Env* env,

Callers 1

WorkerCacheFactoryMethod · 0.45

Calls 3

DefaultFunction · 0.85
InitMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected