TensorFlowによって生成されるモデル・ファイルの「.pb」は、大きく分けて上記のようなパターンで「.tflite」に変換可能です。 公式ドキュメントでは、一番下の「クラス:tf.lite.TFLiteConverter」の使用を推奨しています。 3種類のクラスそして「クラス:tf.lite.TFLiteConverter」では、モデルに応じて3種類のクラスが用意されています。 TFLiteConverter.from_saved_model(): SavedModel ディレクトリ を変換、MobileNetなどで。TFLiteConverter.from_keras_model(): tf.kerasモデルを変換、MNISTなど。TFLiteConverter.from_concrete_functions(): 具象関数を変換。そして各クラスの記述方法は違って、予め定められた方
![TensorFlowのモデルファイル.pbを.tfliteに変換するときの注意点 – 株式会社ライトコード](https://cdn-ak-scissors.b.st-hatena.com/image/square/83872740183644a2225abcff434e711e702e3910/height=288;version=1;width=512/https%3A%2F%2Frightcode.co.jp%2Fwp-content%2Fuploads%2F2020%2F01%2Ftensorflow-model-file-conversion-important-point.png)