Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ GetNameFor
Method
GetNameFor
tensorflow/compiler/jit/device_util.h:113–115 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
111
bool IsCpu(DeviceId device) const { return is_cpu_[device.id()]; }
112
113
absl::string_view GetNameFor(DeviceId device) const {
114
return names_[device.id()];
115
}
116
117
xla::StatusOr<DeviceId> GetIdFor(absl::string_view name);
118
Callers
8
InferDeviceForCluster
Function · 0.80
ReplaceNodeWithXlaCompileAndXlaRun
Function · 0.80
PickDeviceForXlaImpl
Function · 0.80
ShouldCompileClusterImpl
Method · 0.80
InferDeviceForCluster
Function · 0.80
ReplaceNodeWithCgmodeCompileAndCgmodeRun
Function · 0.80
PickDeviceHelper
Function · 0.80
SimpleRoundTripTestForDeviceSet
Function · 0.80
Calls
1
id
Method · 0.45
Tested by
2
PickDeviceHelper
Function · 0.64
SimpleRoundTripTestForDeviceSet
Function · 0.64