cpetig / tflite_micro_compiler

generate tflite micro code which bypasses the interpreter (directly calls into kernels)
Apache License 2.0
76 stars 26 forks source link

Generated examples don't compile with r2.4 #59

Open cpetig opened 3 years ago

cpetig commented 3 years ago

I just found that Register_CONV_2D,QUANTIZE,FULLY_CONNECTED,SOFTMAX,DEPTHWISE_CONV_2D are not declared in micro_ops.h I need to figure out how to fix the examples!

PS: Sorry, I did not fall off the edge of the world, I just spend most of my time on gitlab with the Rust written game veloren.net

PhilippvK commented 3 years ago

I fixed my generated model manually by replacing the prefix tflite::ops::micro:: with `tflite:: for the following registration methods which have been moved to a flat namespace:

PhilippvK commented 3 years ago

I also had to manually add #include "tensorflow/lite/micro/kernels/fully_connected.h to my models since October.

cpetig commented 3 years ago

Thank you for sharing this information, this saves me a lot of time. But I really enjoyed needing no longer any operator specific code for half a year. :disappointed:

andrewstevens-infineon commented 3 years ago

Hi Guys,

Sorry - I actually have a maintained version I maintain here (Infineon) for our deployment toolchain project with relevant patches and some modest extensions. I just haven't got around to pushing it upstream recently due to project-pressure (I'd need to check everythong works cleanly for a stock tflite(u) kernel. We're just migrating to 2.4.1 as our baseline so this would be a good time to do the necessary and push a PR for Christoph.