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

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.

主站蜘蛛池模板: 绥化市| 广水市| 五指山市| 濉溪县| 阜康市| 霍山县| 芦溪县| 合阳县| 恩平市| 松原市| 余姚市| 湄潭县| 榆社县| 繁昌县| 新郑市| 兴义市| 湟源县| 绥德县| 平顶山市| 丹寨县| 健康| 昔阳县| 虹口区| 泉州市| 宁安市| 景德镇市| 葫芦岛市| 双江| 南陵县| 河北区| 德庆县| 嘉义县| 平邑县| 新田县| 威宁| 珲春市| 通山县| 望奎县| 咸阳市| 株洲市| 延吉市|