| 21 | {} |
| 22 | |
| 23 | float 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 |
| 40 | std::vector<std::string> |
no outgoing calls
no test coverage detected