【发布时间】:2018-05-22 07:11:16
【问题描述】:
我使用 tensorflow 训练我的模型,随后将其转换为 tensorflow lite 模型,但运行时显示不支持 tf.less、tf.greaterthan。我应该如何解决这个问题?
【问题讨论】:
标签: tensorflow tensorflow-lite
我使用 tensorflow 训练我的模型,随后将其转换为 tensorflow lite 模型,但运行时显示不支持 tf.less、tf.greaterthan。我应该如何解决这个问题?
【问题讨论】:
标签: tensorflow tensorflow-lite
发现此更新python_api.md
我遇到了类似的问题并使用了这个: 将张量流导入为 tf
converter = tf.contrib.lite.TocoConverter.from_keras_model_file("keras_model.h5")
tflite_model = converter.convert()
open("converted_model.tflite", "wb").write(tflite_model)
这种转换方法对我有用。
【讨论】: