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

Function DevicesToString

tensorflow/core/common_runtime/colocation_graph.cc:57–64  ·  view source on GitHub ↗

Using absl::StrJoin with lambda does not work in tf-lite builds.

Source from the content-addressed store, hash-verified

55
56// Using absl::StrJoin with lambda does not work in tf-lite builds.
57std::vector<string> DevicesToString(const std::vector<Device*> devices) {
58 std::vector<string> v;
59 v.reserve(devices.size());
60 for (Device* d : devices) {
61 v.push_back(d->name());
62 }
63 return v;
64}
65
66// Using absl::StrJoin with lambda does not work in tf-lite builds.
67std::vector<string> DeviceTypeAndPriorityToString(

Callers 4

DebugStringMethod · 0.70
GetDevicesForNodeMethod · 0.70

Calls 4

nameMethod · 0.65
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected