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

Function DevicesToString

tensorflow/core/common_runtime/eager/execute.cc:76–83  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

74
75// Using absl::StrJoin with lambda does not work in tf-lite builds.
76std::vector<string> DevicesToString(const std::vector<Device*> devices) {
77 std::vector<string> v;
78 v.reserve(devices.size());
79 for (Device* d : devices) {
80 v.push_back(d->name());
81 }
82 return v;
83}
84
85// Initializes the step stats if needed.
86void MaybeInitializeStepStats(StepStats* step_stats, EagerContext* ctx) {

Callers 1

SelectDeviceFunction · 0.70

Calls 4

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

Tested by

no test coverage detected