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

Method device_name

tensorflow/compiler/xla/service/backend.h:144–146  ·  view source on GitHub ↗

Return a string identifier for the given device, eg: "GPU:3".

Source from the content-addressed store, hash-verified

142
143 // Return a string identifier for the given device, eg: "GPU:3".
144 string device_name(int device_ordinal) const {
145 return absl::StrCat(platform_->Name(), ":", device_ordinal);
146 }
147
148 // Returns true if the devices with the given ordinals are equivalent from
149 // XLA's perspective. That is, an executable compiled for one device would

Callers 10

AddScopedAllocatorMethod · 0.45
GetAllocatorMethod · 0.45
GetInstanceMethod · 0.45
DropMethod · 0.45
CompleteGroupAsyncMethod · 0.45
UpdateGroupCacheMethod · 0.45
SendTensorMethod · 0.45

Calls 2

StrCatFunction · 0.50
NameMethod · 0.45

Tested by

no test coverage detected