| 777 | } |
| 778 | |
| 779 | unsigned int ArmNNExecutor::CompareAndPrintResult(std::vector<const void*> otherOutput) |
| 780 | { |
| 781 | unsigned int index = 0; |
| 782 | std::string typeString; |
| 783 | // Track the per output tensor results. Return the last non-zero value. |
| 784 | unsigned int overallResult = 0; |
| 785 | for (const auto& outputTensors: m_OutputTensorsVec) |
| 786 | { |
| 787 | for (const auto& outputTensor: outputTensors) |
| 788 | { |
| 789 | size_t size = outputTensor.second.GetNumBytes(); |
| 790 | double result = ComputeByteLevelRMSE(outputTensor.second.GetMemoryArea(), otherOutput[index++], size); |
| 791 | std::cout << "Byte level root mean square error: " << result << "\n"; |
| 792 | if (result != 0) |
| 793 | { |
| 794 | overallResult = static_cast<unsigned int>(result); |
| 795 | } |
| 796 | } |
| 797 | } |
| 798 | return overallResult; |
| 799 | } |
| 800 | #if defined(ARMNN_SERIALIZER) |
| 801 | ArmNNExecutor::ArmNNDeserializer::ArmNNDeserializer() : m_Parser(armnnDeserializer::IDeserializer::Create()){} |
| 802 |
no test coverage detected