Skip to content

Instantly share code, notes, and snippets.

@PranjalDureja0002
Created May 7, 2021 13:05
Show Gist options
  • Save PranjalDureja0002/3e15297f5f8f2f5a0966aa51da8946e5 to your computer and use it in GitHub Desktop.
Save PranjalDureja0002/3e15297f5f8f2f5a0966aa51da8946e5 to your computer and use it in GitHub Desktop.
model
tf_lite_converter = tf.lite.TFLiteConverter.from_keras_model(model)
tf_lite_converter.optimizations = [tf.lite.Optimize.OPTIMIZE_FOR_SIZE]
tflite_model = tf_lite_converter.convert()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment