MCPcopy Create free account
hub / github.com/ARM-software/armnn / GetAccuracy

Method GetAccuracy

src/armnnUtils/ModelAccuracyChecker.cpp:23–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21{}
22
23float ModelAccuracyChecker::GetAccuracy(unsigned int k)
24{
25 if (k > 10)
26 {
27 ARMNN_LOG(warning) << "Accuracy Tool only supports a maximum of Top 10 Accuracy. "
28 "Printing Top 10 Accuracy result!";
29 k = 10;
30 }
31 unsigned int total = 0;
32 for (unsigned int i = k; i > 0; --i)
33 {
34 total += m_TopK[i];
35 }
36 return static_cast<float>(total * 100) / static_cast<float>(m_ImagesProcessed);
37}
38
39// Split a string into tokens by a delimiter
40std::vector<std::string>

Callers 2

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected