- Machine Learning for Mobile
- Revathi Gopalakrishnan Avinash Venkateswarlu
- 168字
- 2021-07-02 14:20:11
TensorFlow Lite components
In this section, we will go through the details of TensorFlow Lite: the overall architecture, the key components, and their functionality.
The following diagram provides a high-level overview of the key components and how they interact to bring machine learning to mobile devices:
The following are the key steps to be followed when implementing ML on devices:
- Use the TensorFlow, or any other machine learning framework, to create the trained TensorFlow/ML models on the desktop. The trained model can also be created using any Cloud ML engine.
- Use the TensorFlow Lite converter to convert the trained ML model to the TensorFlow Lite model file.
- Write a mobile application using these files and convert it into a package for deployment and execution in mobile devices. These lite files could be interpreted and executed directly in the kernels or in the hardware accelerators, if available in the device.
The following are the key components of TensorFlow Lite:
- Model-file format
- Interpreter
- Ops/kernel
- Interface to hardware acceleration