tflite_model = converter.convert()
tflite_model_file = 'converted_model.tflite'
with open(tflite_model_file, "wb") as f:
f.write(tflite_model)
When I finally converted model within dot convert method, I got some error.
Error Message:
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.
Source Code:
even through I didn't find what is
_ZTIN10tensorflow6DeviceE
How could I convert transfer learning model?
I had the same issue - installing nightly build (currently '2.1.0-dev20200104') solved it.
!pip3 uninstall tensorflow
!pip3 install tf-nightly