aboutsummaryrefslogtreecommitdiff
path: root/test/Convolution2D.hpp
diff options
context:
space:
mode:
authorSadik Armagan <sadik.armagan@arm.com>2020-04-27 10:15:41 +0100
committerSadik Armagan <sadik.armagan@arm.com>2020-04-27 10:15:41 +0100
commitd46368765369a8058398e01361cd22a7793894dd (patch)
tree87fd3e74f2466c725fcf519c1dfef0e9f731cd81 /test/Convolution2D.hpp
parent949a69ef997b1d78dca10b4cca833c3e6b3f5436 (diff)
downloadandroid-nn-driver-d46368765369a8058398e01361cd22a7793894dd.tar.gz
IVGCVSW-4692 HAL 1.3 VTS/NNT, Unit test Failures
* Check if the model is prepared. Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: Ia6ea7c5b61a1da97acddddfc5431925cbb4f0227
Diffstat (limited to 'test/Convolution2D.hpp')
-rw-r--r--test/Convolution2D.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Convolution2D.hpp b/test/Convolution2D.hpp
index 38216f10..c471fbd7 100644
--- a/test/Convolution2D.hpp
+++ b/test/Convolution2D.hpp
@@ -104,7 +104,10 @@ void PaddingTestImpl(android::nn::PaddingScheme paddingScheme, bool fp16Enabled
float* outdata = reinterpret_cast<float*>(static_cast<void*>(outMemory->getPointer()));
// run the execution
- Execute(preparedModel, request);
+ if (preparedModel.get() != nullptr)
+ {
+ Execute(preparedModel, request);
+ }
// check the result
switch (paddingScheme)