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

Function Populate

tensorflow/lite/testing/kernel_test/diff_analyzer.cc:56–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56TfLiteStatus Populate(const string& filename,
57 std::vector<std::vector<float>>* tensors) {
58 if (filename.empty()) {
59 fprintf(stderr, "Empty input file name.");
60 return kTfLiteError;
61 }
62
63 std::ifstream file(filename);
64 string content;
65 while (std::getline(file, content, '\n')) {
66 tensors->push_back(Split<float>(content, ","));
67 }
68
69 file.close();
70 return kTfLiteOk;
71}
72} // namespace
73
74TfLiteStatus DiffAnalyzer::ReadFiles(const string& base, const string& test) {

Callers 1

ReadFilesMethod · 0.85

Calls 3

closeMethod · 0.65
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected