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

Method Cluster

tensorflow/core/distributed_runtime/rpcbench_test.cc:107–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 std::vector<DeviceAttributes> devices; // One per process
106
107 Cluster() {
108 (*options.config.mutable_device_count())["CPU"] = 1;
109 options.config.set_intra_op_parallelism_threads(1);
110 options.config.set_inter_op_parallelism_threads(1);
111 MakeGRPCCluster(options, kWorkers, &workers, &devices);
112 LOG(ERROR) << "C " << workers.size() << " " << devices.size() << " "
113 << workers[0] << " " << workers[1];
114 options.target = workers[0];
115 }
116};
117
118static const Cluster* GetCluster() {

Callers

nothing calls this directly

Calls 3

MakeGRPCClusterFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected