October 2018
Intermediate to advanced
246 pages
6h 26m
English
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 sysfrom tf.contrib.lite import convert_savedmodelconvert_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.
Read now
Unlock full access