summaryrefslogtreecommitdiff
path: root/source/application/tensorflow-lite-micro/Model.cc
diff options
context:
space:
mode:
Diffstat (limited to 'source/application/tensorflow-lite-micro/Model.cc')
-rw-r--r--source/application/tensorflow-lite-micro/Model.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/application/tensorflow-lite-micro/Model.cc b/source/application/tensorflow-lite-micro/Model.cc
index adcf8d7..22a1a4d 100644
--- a/source/application/tensorflow-lite-micro/Model.cc
+++ b/source/application/tensorflow-lite-micro/Model.cc
@@ -32,7 +32,7 @@ arm::app::Model::Model() :
m_inited (false),
m_type(kTfLiteNoType)
{
- this->m_pErrorReporter = &this->m_uErrorReporter;
+ this->m_pErrorReporter = tflite::GetMicroErrorReporter();
}
bool arm::app::Model::Init(tflite::MicroAllocator* allocator)
@@ -108,7 +108,6 @@ bool arm::app::Model::Init(tflite::MicroAllocator* allocator)
TfLiteStatus allocate_status = this->m_pInterpreter->AllocateTensors();
if (allocate_status != kTfLiteOk) {
- this->m_pErrorReporter->Report("[ERROR] allocateTensors() failed");
printf_err("tensor allocation failed!\n");
delete this->m_pInterpreter;
return false;