| 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 | |
| 118 | static const Cluster* GetCluster() { |
nothing calls this directly
no test coverage detected