r/androiddev • u/trikboomie • 19d ago
How do you debug on-device ML inference (LiteRT / ONNX Runtime) in a shipped Android app?
For anyone running LiteRT (TFLite) or ONNX Runtime inside a production Android app: when inference fails, gets slow, or gives bad output on a user's device, how do you figure out what happened?
Android hardware varies so much that I'd expect GPU/NNAPI delegate fallbacks, OOMs on low-end devices, or thermal throttling to show up in ways that are hard to reproduce.
Are you tracking things like model load time, latency per device, or which delegate actually ran, or mostly relying on Crashlytics and user reports?
Curious what's been hardest to diagnose after release.
1
u/simbolmina 19d ago
I have craslytics and custom crash logger that user can send the logs after crash. For development, tons of logs, benchmarks and tests.