Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ FindDeviceByName
Method
FindDeviceByName
tensorflow/core/common_runtime/device_set.cc:53–55 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
51
}
52
53
Device* DeviceSet::FindDeviceByName(const string& name) const {
54
return gtl::FindPtrOrNull(device_by_name_, name);
55
}
56
57
// static
58
int DeviceSet::DeviceTypeOrder(const DeviceType& d) {
Callers
6
CanAssignToDevice
Method · 0.45
PartitionFunctionGraph
Function · 0.45
InitializeMemberWithAssignedDevice
Method · 0.45
InstantiateMultiDevice
Method · 0.45
LookupDevice
Function · 0.45
BuildAndRegisterPartitions
Method · 0.45
Calls
1
FindPtrOrNull
Function · 0.85
Tested by
no test coverage detected