tensorflow - google colab 您的会话因未知原因而崩溃 .convert()
问题描述
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 。我尝试了一切,但没有奏效。
解决方案
推荐阅读
- neo4j - How to return multiple fields with Spring Data Neo4j RX?
- python - Avoid foreground becomes into background on background substractor using OpenCV
- python - 在 pandas 中拆分列并保留第一个拆分
- python - 尝试将元组添加到列表中并添加字符 ' 破坏代码
- sql - Spark SQL CTE在查询中忽略命名空间
- flutter - 在颤动中返回并显示列表中的项目数
- google-cloud-platform - 对 Google API 的请求停止工作,我该如何调试该问题?
- c++ - KTX 图像文件可以是立方体贴图数组吗?
- python - 用于查找文档之间文本相似性的 keras LSTM 层的维数错误
- asp.net - MiniProfiler MVC SQL 计时不显示