How to migrate tensorflow to tflite

Hi everyone!
I would like to know is there is a way to let you migrate your code from tf to tflite.
I have one problem about tf.function because tflite.runtime hasnot attribute function.
Anyone knows how to solve this?
Thank you so much in advance

1 Like

Hi @Pabl0MG you can use tf.lite.TFLiteConverter.from_keras_model(model) to convert your tensorflow model to tflite format. For more details please refer to this document. Thank You!