官术网_书友最值得收藏!

Converting SavedModel into TensorFlow Lite format

Converting your ML model into a TensorFlow Lite model can be done in just one line of code by calling the conversion method. Here is the simple Python snippet that converts your existing model into TensorFlow Lite format. You can feed in the existing model and convert that into .tflite format:

import sys
from tf.contrib.lite import convert_savedmodel
convert_savedmodel.convert(
saved_model_directory="/tmp/your_model",
output_tflite_file="/tmp/my_model.tflite")

The code here converts the existing model created in other frameworks into TensorFlow Lite format using FlatBuffers. There are a few conversion strategies that need to be followed.

主站蜘蛛池模板: 台北市| 彭州市| 平度市| 二手房| 忻州市| 治多县| 象州县| 桦川县| 苗栗市| 紫金县| 漠河县| 尉犁县| 卢湾区| 和硕县| 新河县| 扶沟县| 青神县| 固阳县| 绍兴县| 万宁市| 涟水县| 南召县| 盈江县| 宜君县| 建湖县| 苏尼特右旗| 抚顺县| 无为县| 张北县| 阿城市| 双峰县| 鄂州市| 湖口县| 樟树市| 凤凰县| 甘孜县| 海原县| 绥中县| 霍城县| 墨江| 边坝县|