google colab 您的会话因未知原因崩溃 .convert()

时间:2021-06-03 21:12:37

标签: tensorflow google-colaboratory tensorflow-lite

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 。我尝试了一切,但没有奏效。

0 个答案:

没有答案