From d46368765369a8058398e01361cd22a7793894dd Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Mon, 27 Apr 2020 10:15:41 +0100 Subject: IVGCVSW-4692 HAL 1.3 VTS/NNT, Unit test Failures * Check if the model is prepared. Signed-off-by: Sadik Armagan Change-Id: Ia6ea7c5b61a1da97acddddfc5431925cbb4f0227 --- test/Convolution2D.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/Convolution2D.hpp') 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(static_cast(outMemory->getPointer())); // run the execution - Execute(preparedModel, request); + if (preparedModel.get() != nullptr) + { + Execute(preparedModel, request); + } // check the result switch (paddingScheme) -- cgit v1.2.1