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

Method GetDeviceNames

tensorflow/core/grappler/clusters/cluster.cc:98–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98const std::vector<string> Cluster::GetDeviceNames() const {
99 std::vector<string> device_names;
100 device_names.reserve(devices_.size());
101 for (const auto& device : devices_) {
102 device_names.push_back(device.first);
103 }
104 std::sort(device_names.begin(), device_names.end());
105 return device_names;
106}
107
108} // end namespace grappler
109} // end namespace tensorflow

Callers 6

PrintDebugInfoMethod · 0.80
TEST_FFunction · 0.80
OptimizeMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 6

sortFunction · 0.85
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 4

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64