I'm loading a TensorFlow Lite model into my Android app, but the application keeps crashing (without any error printed out) on:
tflite = new Interpreter(loadModelFile(activity));
It is my understanding, from some issues on the tensorflow repo on github, that this is due to a bad tflite model; indeed, if I load a demo model from the repository instead, it works fine.
How do I check the correctness of a .tflite model? I created it from a tensorflow model file .pb converted with toco from the repo, which gave me neither errors nor positive feedback. The tensorflow model comes from a convertion of a keras model.