当前位置:网站首页>Tensorflow Lite source code analysis
Tensorflow Lite source code analysis
2022-07-26 16:44:00 【Autumn ink】
TensorFlow Lite It is specially re implemented for the characteristics of mobile and embedded devices TensorFlow edition . Compared with ordinary TensorFlow, Its functions are more streamlined , Model training is not supported , Distributed operation is not supported , There is not much cross platform logic , Supported by op It's also limited .TensorFlow Lite Use to run on the mobile end , Some devices even have very limited resources , Therefore, the overhead in memory and parsing must be reduced as much as possible .TensorFlow The exported model uses Protocol Buffer agreement , Therefore, it is necessary to convert it to a better performance FlatBuffer Format .
You can go through more than one Delegate Use multiple accelerators to accelerate , As long as we are Interpreter After instantiation and calling Interpreter.Invoke() Initialize different types of Delegate, for example GPU、NNAPI Waiting Delegate, And use interpreter->ModifyGraphWithDelegate(delegate) For these Delegate Just register one by one .
TFLite Reasoning is mainly divided into the following steps :
1. Load model file .
2. Create a class Interpreter Example . In the process , The inference engine will parse the model 、 Allocate the memory space needed in the running process of the model and determine the execution order between various layers in the model .
3. adopt Delegate Use accelerator to accelerate .
4. Ready to input data , This requires corresponding processing according to the input format required by the model ;
5. call Interpreter.Invoke() Reasoning ;
6. Get reasoning results .
Pre training model :
- inception v3: For target detection
- MobileNets: A model specifically for mobile terminals , With low latency , high velocity ,
边栏推荐
- 工作流引擎在vivo营销自动化中的应用实践
- C#读取本地文件夹中所有文件文本内容的方法
- 【E-MR】NameNode的错误恢复记录
- 【飞控开发基础教程1】疯壳·开源编队无人机-GPIO(LED 航情灯、信号灯控制)
- Trends in software testing tools in 2021
- The process and harvest of developing browser plug-ins with clojurescript
- 接口比较器
- What does it mean to lock financial products regularly? Can financial products be redeemed during the lock-in period?
- 该怎么写单元测试呢
- MVC和ECS两种设计架构的初浅理解
猜你喜欢

Vlang's way of beating drums

NUC 11 build esxi 7.0.3f install network card driver-v2 (upgraded version in July 2022)

综合设计一个OPPE主页--导航栏的设计

数字化转型怎么就那么的难?!

Linux Installation mysql8.0.29 detailed tutorial

Operating system migration practice: deploying MySQL database on openeuler

MVC和ECS两种设计架构的初浅理解

【Flutter -- 进阶】打包

Digital intelligence transformation, management first | jnpf strives to build a "full life cycle management" platform

微信小程序---网络数据请求
随机推荐
工作流引擎在vivo营销自动化中的应用实践
Difference between C event and delegation
Response对象-响应字符数据
My SQL is OK. Why is it still so slow? MySQL locking rules
京东三面:我要查询千万级数据量的表,怎么操作?
What does it mean to lock financial products regularly? Can financial products be redeemed during the lock-in period?
PyQt5快速开发与实战 3.2 布局管理入门 and 3.3 Qt Designer实战应用
Marxan模型保护区优化与保护空缺甄选技术、InVEST生态系统中的应用
There are six ways to help you deal with the simpledateformat class, which is not a thread safety problem
Replicationcontroller and replicaset of kubernetes
Threads and processes
MVC和ECS两种设计架构的初浅理解
The difference and efficiency comparison of three methods of C # conversion integer
Linux安装mysql8.0.29详细教程
综合设计一个OPPE主页--导航栏的设计
Guangzhou Municipal Safety Committee Office issued warnings and reminders on safety precautions in hot weather
【Flutter -- 进阶】打包
【飞控开发基础教程2】疯壳·开源编队无人机-定时器(LED 航情灯、指示灯闪烁)
Movable view component (it can be dragged up, down, left and right)
接口比较器