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

Function LoadLabelFile

internal/bin/classification.cpp:113–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void LoadLabelFile(std::vector<std::string>& result, const char* fname)
114{
115 std::ifstream labels(fname);
116
117 std::string line;
118 while(std::getline(labels, line))
119 result.push_back(line);
120}
121
122void PrintTopLabels(const char* label_file, float* data)
123{

Callers 2

PrintTopLabelsFunction · 0.70
PrintTopLabels_uint8Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected