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

Function SplitAndParse

tensorflow/lite/tools/benchmark/benchmark_utils.h:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32// 'values'.
33template <typename T>
34bool SplitAndParse(const std::string& str, char delim, std::vector<T>* values) {
35 std::istringstream input(str);
36 for (std::string line; std::getline(input, line, delim);) {
37 std::istringstream to_parse(line);
38 T val;
39 to_parse >> val;
40 if (!to_parse.eof() && !to_parse.good()) {
41 return false;
42 }
43 values->emplace_back(val);
44 }
45 return true;
46}
47
48} // namespace util
49} // namespace benchmark

Callers 4

ParsePerfOptionsMethod · 0.85
TESTFunction · 0.85
SplitFunction · 0.85
PopulateInputLayerInfoFunction · 0.85

Calls 1

emplace_backMethod · 0.45

Tested by 1

TESTFunction · 0.68