Search code examples
tensorflowtensorflow2.0tensorflow-datasetstensorflow-litetensorflow-serving

facing issues for convert from tensorflow core to tensorflow lite


I am facing issues for convert TensorFlow to TensorFlow Lite. As per research first need to save the model in .pb and by using this file we can convert it into TensorFlow lite but facing an error.


Solution

  • Among the TF graph representations, exporting as a saved model is recommended. TFLiteConverter.from_saved_model API is more capable than the other conversion APIs. For example, signature def API is only available from the saved model API and there are better support of resource and variant types in the saved model API.

    https://www.tensorflow.org/hub/exporting_tf2_saved_model https://www.tensorflow.org/lite/convert