This repo shows how to train a model using TensorFlow and how to run it on Android using both TensorFlow Mobile and TensorFlow Lite.
There are 2 sections.
logic-gate-python contains how to build a computation graph, how to benchmark, and how to optimize it for mobile.
logic-gate-android is an Android app which runs a trained model.