tensorflow lite 转换失败。 "undefined symbol : _ZTIN10tensorflow6DeviceE" 发生
tensorflow lite conversion failed. "undefined symbol : _ZTIN10tensorflow6DeviceE" occured
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
如何转换迁移学习模型?
我有同样的问题 - 安装夜间构建(当前为“2.1.0-dev20200104”)解决了它。
!pip3 uninstall tensorflow
!pip3 install tf-nightly
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
如何转换迁移学习模型?
我有同样的问题 - 安装夜间构建(当前为“2.1.0-dev20200104”)解决了它。
!pip3 uninstall tensorflow
!pip3 install tf-nightly