| 78 | } |
| 79 | |
| 80 | string DeviceInfoCache::DebugString(const DeviceSet& device_set) const { |
| 81 | std::vector<string> names; |
| 82 | device_set.ForEach([&](DeviceId device_id) { |
| 83 | names.push_back(string(GetNameFor(device_id))); |
| 84 | return true; |
| 85 | }); |
| 86 | |
| 87 | return absl::StrCat("[", absl::StrJoin(names, ","), "]"); |
| 88 | } |
| 89 | } // namespace jit |
| 90 | |
| 91 | Status DeviceNameToDeviceType(const string& device, DeviceType* device_type) { |