Skip to content

Commit 0ef43e9

Browse files
author
CaCO3
committed
Added log message to hint in case it crashes on loading a corrupted model
1 parent 9b094f1 commit 0ef43e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

code/components/jomjol_tfliteclass/CTfLiteClass.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ bool CTfLiteClass::MakeAllocate()
206206

207207
LogFile.WriteToFile(ESP_LOG_DEBUG, TAG, "CTfLiteClass::MakeAllocate");
208208
this->interpreter = new tflite::MicroInterpreter(this->model, resolver, this->tensor_arena, this->kTensorArenaSize);
209+
LogFile.WriteToFile(ESP_LOG_INFO, TAG, "Trying to load the model. If it crashes here, it ist most likely due to a corrupted model!");
209210

210211
if (this->interpreter)
211212
{

0 commit comments

Comments
 (0)