| 213 | } |
| 214 | |
| 215 | void SetDevice(GraphDef* graph, const string& name, const string& dev) { |
| 216 | for (size_t i = 0; i < graph->node_size(); ++i) { |
| 217 | if (graph->node(i).name() == name) { |
| 218 | graph->mutable_node(i)->set_device(dev); |
| 219 | return; |
| 220 | } |
| 221 | } |
| 222 | LOG(FATAL) << "Name '" << name << "' not found."; |
| 223 | } |
| 224 | |
| 225 | TEST_F(GrpcSessionDebugTest, MultiDevices_String) { |
| 226 | std::unique_ptr<test::TestCluster> cluster; |
no test coverage detected