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

add ability to debug runtime allocations #60

Open rafzi opened 3 years ago

rafzi commented 3 years ago

I ran into a bug caused by overriding the implementation of an operator only in the TF runtime, not in the TF linked to the compiler. The runtime implementation was doing different calls to AllocatePersistentBuffer than what the compiler expected. This caused weird data corruption issues.

This PR implements a way to prevent such issues in the future.