Created
March 14, 2019 17:33
-
-
Save dansitu/7400095f683ce536226bf7a0e0cb3205 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load TensorFlow | |
import tensorflow as tf | |
# Set up the converter | |
converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir) | |
converter.optimizations = [tf.lite.Optimize.OPTIMIZE_FOR_SIZE] | |
# Perform conversion and output file | |
tflite_quant_model = converter.convert() | |
output_dir.write_bytes(tflite_quant_model) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately this code doesn't helped me.
P.S. I found solution