| 130 | } |
| 131 | |
| 132 | static DeviceAttributes BuildXlaDeviceAttributes(const string& name_prefix, |
| 133 | const string& device_name, |
| 134 | int device_ordinal) { |
| 135 | return Device::BuildDeviceAttributes( |
| 136 | absl::StrCat(name_prefix, "/device:", device_name, ":", device_ordinal), |
| 137 | DeviceType(device_name), Bytes(16ULL << 30), DeviceLocality(), |
| 138 | absl::StrCat("device: ", device_name, " device")); |
| 139 | } |
| 140 | |
| 141 | } // namespace |
| 142 |
no test coverage detected