You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
converter=tf.lite.TFLiteConverter.from_saved_model('spice') # path to the SavedModel directory
tflite_model=converter.convert()
# Save the model.
withopen('model.tflite', 'wb') asf:
f.write(tflite_model)
#### Other features
## Apply optimizations. A common optimization used is post training quantization, which can further reduce your model latency and size with minimal loss in accuracy.
## Add metadata, which makes it easier to create platform specific wrapper code when deploying models on devices.