| 229 | } |
| 230 | |
| 231 | bool NodeIsOnGpu(const NodeDef* node) { |
| 232 | string task, device; |
| 233 | return DeviceNameUtils::SplitDeviceName(node->device(), &task, &device) && |
| 234 | absl::StartsWith(device, DEVICE_GPU); |
| 235 | } |
| 236 | |
| 237 | int NumOutputs(const NodeDef& node, GraphDef* graph) { |
| 238 | int num_outputs = 0; |
no test coverage detected