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

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.

主站蜘蛛池模板: 九龙城区| 黄石市| 宜春市| 百色市| 玉门市| 呈贡县| 美姑县| 辰溪县| 丰城市| 左权县| 且末县| 江孜县| 桃江县| 分宜县| 孙吴县| 百色市| 武宁县| 保亭| 壤塘县| 锦州市| 邵阳市| 怀仁县| 鹤山市| 游戏| 随州市| 化德县| 合山市| 青海省| 仙居县| 镇巴县| 汕尾市| 镇巴县| 泾阳县| 南靖县| 唐河县| 西和县| 台中市| 临泽县| 晋州市| 阿拉善盟| 宽甸|