Fix issue with ExecuteNetwork when running with tflite executor
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: Id404893c47d43dafa743f4b9524001072b426509
diff --git a/tests/ExecuteNetwork/TfliteExecutor.cpp b/tests/ExecuteNetwork/TfliteExecutor.cpp
index 8412750..6455650 100644
--- a/tests/ExecuteNetwork/TfliteExecutor.cpp
+++ b/tests/ExecuteNetwork/TfliteExecutor.cpp
@@ -77,6 +77,10 @@
}
else
{
+ if (builder(&m_TfLiteInterpreter) != kTfLiteOk)
+ {
+ LogAndThrow("Error loading the model into the TfLiteInterpreter.");
+ }
std::cout << "Running on TfLite without ArmNN delegate\n";
}