MCPcopy Create free account
hub / github.com/OAID/Tengine / LoadLableFile

Function LoadLableFile

tools/bin/test_accuracy.cpp:151–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void LoadLableFile(std::vector<int>& result, const char* fname)
152{
153 std::ifstream labels(fname);
154
155 std::string line;
156 while(std::getline(labels, line))
157 {
158 int lable_index = atoi(line.c_str());
159 result.push_back(lable_index);
160 }
161}
162
163int main(int argc, char* argv[])
164{

Callers 1

mainFunction · 0.85

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected