aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Åstrand <per.astrand@arm.com>2021-02-25 11:10:08 +0100
committerPer Åstrand <per.astrand@arm.com>2021-02-25 11:57:18 +0100
commit9045545933687a0f646124f545386cec9a19fdb1 (patch)
tree6bab8b12dfcebb989d2c3afe0ec76574e3bc53cc
parent91f600c9b55c0476cc64c7252638c83b47ea4654 (diff)
downloadethos-u-core-software-9045545933687a0f646124f545386cec9a19fdb1.tar.gz
Fix misleading log messages21.02
Change-Id: I2f0a7c9ec9e59b2a076bfd873e5a997189c67e11
-rw-r--r--applications/inference_process/src/inference_process.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/applications/inference_process/src/inference_process.cpp b/applications/inference_process/src/inference_process.cpp
index 3b26469..727c340 100644
--- a/applications/inference_process/src/inference_process.cpp
+++ b/applications/inference_process/src/inference_process.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019-2020 Arm Limited. All rights reserved.
+ * Copyright (c) 2019-2021 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -320,24 +320,24 @@ bool InferenceProcess::runJob(InferenceJob &job) {
const TfLiteTensor *output = interpreter.output(i);
if (expected.size != output->bytes) {
- printf(
- "Expected tensor size does not match network size. job=%s, index=%u, expected=%zu, network=%zu\n",
- job.name.c_str(),
- i,
- expected.size,
- output->bytes);
+ printf("Expected tensor size does not match output size. job=%s, index=%u, expected=%zu, network=%zu\n",
+ job.name.c_str(),
+ i,
+ expected.size,
+ output->bytes);
return true;
}
for (unsigned int j = 0; j < output->bytes; ++j) {
if (output->data.uint8[j] != static_cast<uint8_t *>(expected.data)[j]) {
- printf("Expected tensor size does not match network size. job=%s, index=%u, offset=%u, "
+ printf("Expected data does not match output data. job=%s, index=%u, offset=%u, "
"expected=%02x, network=%02x\n",
job.name.c_str(),
i,
j,
static_cast<uint8_t *>(expected.data)[j],
output->data.uint8[j]);
+ return true;
}
}
}