MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / BuildXlaDeviceAttributes

Function BuildXlaDeviceAttributes

tensorflow/compiler/jit/xla_device.cc:132–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132static 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

Callers 1

XlaDeviceMethod · 0.85

Calls 2

DeviceTypeClass · 0.85
StrCatFunction · 0.50

Tested by

no test coverage detected