tflite_model = converter.convert()
tflite_model_file = 'converted_model.tflite'
with open(tflite_model_file, "wb") as f:
f.write(tflite_model)
当我最终使用点转换方法转换模型时, 我遇到了一些错误。
错误消息:
ValueError: Failed to parse the model: /tensorflow-2.1.0/python3.6/tensorflow_core/lite/python/optimize/_tensorflow_lite_wrap_calibration_wrapper.so: undefined symbol: _ZTIN10tensorflow6DeviceE.
源代码:
甚至我都没有找到
_ZTIN10tensorflow6DeviceE
如何转换转学模式?
答案 0 :(得分:3)
我遇到了同样的问题-安装每夜构建(当前为'2.1.0-dev20200104')可以解决此问题。
!pip3 uninstall tensorflow
!pip3 install tf-nightly