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

Function KeyValueToStr

tensorflow/core/profiler/tfprof_options.cc:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace tfprof {
26namespace {
27string KeyValueToStr(const std::map<string, string>& kv_map) {
28 std::vector<string> kv_vec;
29 kv_vec.reserve(kv_map.size());
30 for (const auto& pair : kv_map) {
31 kv_vec.push_back(strings::StrCat(pair.first, "=", pair.second));
32 }
33 return absl::StrJoin(kv_vec, ",");
34}
35} // namespace
36
37tensorflow::Status ParseOutput(const string& output_opt, string* output_type,

Callers 1

ToStringMethod · 0.85

Calls 4

StrCatFunction · 0.50
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected