Hello,
I am converting the tflite model to .h file. The model works fine with 2 layers and it fails when there are more than two layers.
!apt-get update && apt-get -qq install xxd
# Convert to a C source file, i.e, a TensorFlow Lite for Microcontrollers model
!xxd -i {MODEL_TFLITE} > {MODEL_TFLITE_MICRO}
# Update variable names
REPLACE_TEXT = MODEL_TFLITE.replace('/', '_').replace('.', '_')
!sed -i 's/'{REPLACE_TEXT}'/model300_2/g' {MODEL_TFLITE_MICRO}
error i am getting:
Breakpoint 4, setup () at ..\src\main_functions.cc:84
84 model, resolver, tensor_arena, kTensorArenaSize, error_reporter);
Breakpoint 1, setup () at ..\src\main_functions.cc:85
85 interpreter = &static_interpreter;
Breakpoint 3, setup () at ..\src\main_functions.cc:88
88 TfLiteStatus allocate_status = interpreter->AllocateTensors();
Program received signal SIGSEGV, Segmentation fault.
0x000000000048b8bc in tflite::BuiltinDataAllocator::AllocatePOD<TfLiteFullyConnectedParams> (this=0x4e47b8 <(anonymous namespace)::tensor_arena+1752>) at D:/Projects/TinyML_Simulator/TF_Simulator/tensorflowLite/tensorflow/lite/core/api/flatbuffer_conversions.h:48
48 return new (allocated_memory) T();
Please help me in resolving the issue