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

Method CompareAndPrintResult

tests/ExecuteNetwork/ArmNNExecutor.cpp:779–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

777}
778
779unsigned 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)
801ArmNNExecutor::ArmNNDeserializer::ArmNNDeserializer() : m_Parser(armnnDeserializer::IDeserializer::Create()){}
802

Callers 1

mainFunction · 0.45

Calls 3

ComputeByteLevelRMSEFunction · 0.85
GetMemoryAreaMethod · 0.80
GetNumBytesMethod · 0.45

Tested by

no test coverage detected