diff options
author | Colm Donelan <colm.donelan@arm.com> | 2023-03-06 12:34:54 +0000 |
---|---|---|
committer | Colm Donelan <colm.donelan@arm.com> | 2023-03-06 22:06:38 +0000 |
commit | d047262b7fb68ad1fe0a2273ee79ab7952c72a6e (patch) | |
tree | 5e35dd8938cea094218fd84abb14d6418711df7d /tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp | |
parent | 0e5a1317156f97c56baf556ddc8a638228dbec74 (diff) | |
download | armnn-d047262b7fb68ad1fe0a2273ee79ab7952c72a6e.tar.gz |
Fixing compare output feature in ExecuteNetwork
The -A -B -C options in execute network were attempting to calculate
the RMS error over output tensors. However, the calculation was mixing
tensor elements and bytes when doing the calculation. This patch
changes the calculation to use a per byte RMS error calculation.
Signed-off-by: Colm Donelan <colm.donelan@arm.com>
Change-Id: If30230a16cfed1a8804b4d54ed1abcd371f26664
Diffstat (limited to 'tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp')
-rw-r--r-- | tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp b/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp index cba6748b45..007f81890e 100644 --- a/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp +++ b/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp @@ -359,17 +359,19 @@ ProgramOptions::ProgramOptions() : m_CxxOptions{"ExecuteNetwork", cxxopts::value<std::string>()->default_value("parser")) ("C, compare-output", - "Compare the output of the network with an output file that has been previously " - "produced by running a network through ExecuteNetwork. See --write-outputs-to-file " - "to produce an output file for an execution.", + "Perform a per byte root mean square error calculation of the inference output with an output" + " file that has been previously produced by running a network through ExecuteNetwork." + " See --write-outputs-to-file to produce an output file for an execution.", cxxopts::value<std::string>(m_ExNetParams.m_ComparisonFile)) ("B, compare-output-with-backend", - "Compare the output of the network with a different backend.", + "Perform a per byte root mean square error calculation of the output of the inference with a" + " different backend.", cxxopts::value<std::vector<std::string>>()) ("A, compare-with-tflite", - "Compare the output of the network with the tflite ref model.", + "Perform an per byte root mean square error calculation of the output of the inference with" + " the tflite ref model.", cxxopts::value<bool>(m_ExNetParams.m_CompareWithTflite)->default_value("false") ->implicit_value("true")); |