Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以转tflite 并int8 量化嘛? #2

Open
fangxiaoying opened this issue Jul 21, 2021 · 0 comments
Open

可以转tflite 并int8 量化嘛? #2

fangxiaoying opened this issue Jul 21, 2021 · 0 comments

Comments

@fangxiaoying
Copy link

我这用pb 转tflite 会失败。

import tensorflow as tf

saved_model_dir = "export_models/slim/"
converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir)

tflite_model = converter.convert()

Save the model.

open("slim.tflite", "wb").write(tflite_model)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant