converter = tf.lite.TFLiteConverter.from_keras_model(model)
tflite_model = converter.convert()
# Save the model.
with open('model.tflite', 'wb') as f:
f.write(tflite_model)
我正在尝试将 keras 转换为 tflite 模型。但是在 Google colab 中,当我尝试运行此代码时,在“tflite_model = converter.convert()”这一行出现错误“您的会话因未知原因崩溃”
我升级了 tensorflow, tfgpu 。我尝试了一切,但没有奏效。