summaryrefslogtreecommitdiff
path: root/tests/use_case/ad
diff options
context:
space:
mode:
authorIsabella Gottardi <isabella.gottardi@arm.com>2021-10-20 15:52:32 +0100
committerIsabella Gottardi <isabella.gottardi@arm.com>2021-10-25 08:51:10 +0000
commit79d4154ee071d0e7ef2d1eecdde149d488bb9d8b (patch)
tree21c8c0a2bd187a925f28045d4a57e9e4ef05be82 /tests/use_case/ad
parent14ab8d447c5f12df2ac7fd4217fc0d2005b02dca (diff)
downloadml-embedded-evaluation-kit-79d4154ee071d0e7ef2d1eecdde149d488bb9d8b.tar.gz
MLECO-2458 and MLECO-2476 [Fix] VWW IFM quant step
* Changed image->cc conversion to be similar with preprocessing of img_class and vww models: images are scaled maintaing the aspect ration and then the centre crop of the correct size is taken. * VWW applies input quantization info to the int8 image (prior converted to [0,1] float range). * Changed adult_blur to a image without person. * Fix menu print when selecting a specific ifm to run (Select message was displayed after typing something) Change-Id: Ie6cde7ab4835ea842667b87397458a5d32131df3
Diffstat (limited to 'tests/use_case/ad')
-rw-r--r--tests/use_case/ad/InferenceTestAD.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/use_case/ad/InferenceTestAD.cc b/tests/use_case/ad/InferenceTestAD.cc
index d5e21c2..ad785e8 100644
--- a/tests/use_case/ad/InferenceTestAD.cc
+++ b/tests/use_case/ad/InferenceTestAD.cc
@@ -64,7 +64,7 @@ bool RunInferenceRandom(arm::app::Model& model)
template <typename T>
void TestInference(const T *input_goldenFV, const T *output_goldenFV, arm::app::Model& model)
{
- REQUIRE(RunInference(model, (int8_t*)input_goldenFV));
+ REQUIRE(RunInference(model, static_cast<const T*>(input_goldenFV)));
TfLiteTensor *outputTensor = model.GetOutputTensor(0);
@@ -75,7 +75,7 @@ void TestInference(const T *input_goldenFV, const T *output_goldenFV, arm::app::
for (size_t i = 0; i < outputTensor->bytes; i++)
{
- REQUIRE((int)tensorData[i] == (int)((T)output_goldenFV[i]));
+ REQUIRE(static_cast<int>(tensorData[i]) == static_cast<int>(((T)output_goldenFV[i])));
}
}