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

Method ListDevices

tensorflow/core/common_runtime/device_mgr.cc:75–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75std::vector<Device*> DeviceMgr::ListDevices() const {
76 std::vector<Device*> devices(devices_.size());
77 for (size_t i = 0; i < devices_.size(); ++i) {
78 devices[i] = devices_[i].get();
79 }
80 return devices;
81}
82
83string DeviceMgr::DebugString() const {
84 string out;

Callers 15

GetTestDeviceFunction · 0.45
TESTFunction · 0.45
ProvisionMethod · 0.45
GetPeakMemoryUsageMethod · 0.45
ResetSessionMethod · 0.45
ClearAllocatorStatsMethod · 0.45
TESTFunction · 0.45
GPUDeviceNameFunction · 0.45
SetUpMethod · 0.45
RunAndFetchMethod · 0.45

Calls 2

sizeMethod · 0.45
getMethod · 0.45

Tested by 9

GetTestDeviceFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
GPUDeviceNameFunction · 0.36
SetUpMethod · 0.36
RunAndFetchMethod · 0.36
RunAndFetchMethod · 0.36
RunAndFetchMethod · 0.36
TEST_FFunction · 0.36