Deep Learning on Mobile Devices
In this chapter, we will introduce how to deploy deep learning (DL) models developed with TensorFlow (TF) and PyTorch on mobile devices using TensorFlow Lite (TF Lite) and PyTorch Mobile, respectively. First, we will discuss how to convert a TF model into a TF Lite model. Then, we will explain how to convert a PyTorch model into a TorchScript model that PyTorch Mobile can consume. Finally, the last two sections of this chapter will cover how to integrate the converted models into Android and iOS applications (apps).
In this chapter, we’re going to cover the following main topics:
- Preparing DL models for mobile devices
- Creating iOS apps with a DL model
- Creating Android apps with a DL model