MCPcopy 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
53Device* DeviceSet::FindDeviceByName(const string& name) const {
54 return gtl::FindPtrOrNull(device_by_name_, name);
55}
56
57// static
58int DeviceSet::DeviceTypeOrder(const DeviceType& d) {

Callers 6

CanAssignToDeviceMethod · 0.45
PartitionFunctionGraphFunction · 0.45
LookupDeviceFunction · 0.45

Calls 1

FindPtrOrNullFunction · 0.85

Tested by

no test coverage detected