| 25 | namespace tfprof { |
| 26 | namespace { |
| 27 | string 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 | |
| 37 | tensorflow::Status ParseOutput(const string& output_opt, string* output_type, |