aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Hoglind <henrik.hoglind@arm.com>2022-03-18 08:58:11 +0100
committerHenrik Hoglind <henrik.hoglind@arm.com>2022-03-21 08:11:50 +0100
commit59096ef275ab1ef7dd1f38706e628370bdc44a86 (patch)
tree04ae97987af75b2d83c28e6f62d599eac0d81243
parent10707e452ac2fc36c8c72f551239585d9aaa2c3d (diff)
downloadethos-u-core-software-59096ef275ab1ef7dd1f38706e628370bdc44a86.tar.gz
Add size of data in bytes to output tensor print
The printing of the output tensor can be truncated, by adding the original size of the output in bytes the included data can be checked for completeness. The dims will tell the number of elements of the output tensor and is not useful for this purpose as the element size can vary. Change-Id: Ied5447e34416a8c6668eeae5c01a5474f103023f
-rw-r--r--applications/inference_process/src/inference_process.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/applications/inference_process/src/inference_process.cpp b/applications/inference_process/src/inference_process.cpp
index 9438882..264c4ba 100644
--- a/applications/inference_process/src/inference_process.cpp
+++ b/applications/inference_process/src/inference_process.cpp
@@ -321,6 +321,7 @@ void InferenceProcess::printOutputTensor(TfLiteTensor *output, size_t bytesToPri
LOG("%d],\n", output->dims->data[dims_size - 1]);
LOG("\"data_address\": \"%08" PRIx32 "\",\n", (uint32_t)output->data.data);
+ LOG("\"data_bytes\": %d,\n", output->bytes);
if (numBytesToPrint) {
LOG("\"crc32\": \"%08" PRIx32 "\",\n", crc32);