From 9045545933687a0f646124f545386cec9a19fdb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=85strand?= Date: Thu, 25 Feb 2021 11:10:08 +0100 Subject: Fix misleading log messages Change-Id: I2f0a7c9ec9e59b2a076bfd873e5a997189c67e11 --- applications/inference_process/src/inference_process.cpp | 16 ++++++++-------- 1 file 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(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(expected.data)[j], output->data.uint8[j]); + return true; } } } -- cgit v1.2.1