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

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.

主站蜘蛛池模板: 旅游| 永兴县| 龙陵县| 南川市| 宣化县| 婺源县| 鄄城县| 郎溪县| 松江区| 德钦县| 曲松县| 施甸县| 定日县| 闽清县| 南投县| 炎陵县| 滦南县| 泽库县| 沁阳市| 怀柔区| 望江县| 萨嘎县| 铁岭县| 永兴县| 巢湖市| 丰原市| 凌源市| 汝南县| 文山县| 隆化县| 玉山县| 汕尾市| 蓬溪县| 乌鲁木齐县| 赫章县| 林西县| 偃师市| 咸丰县| 庆阳市| 兰州市| 阜平县|