【发布时间】:2018-12-09 12:40:11
【问题描述】:
我正在尝试将经过训练的 Keras 模型从 .pb 文件转换为 .tflite 文件:
tflite_model = tf.contrib.lite.toco_convert(frozen_graph_def, input_tensors, output_tensors)
但是,当我运行此代码时,会出现以下错误:
AttributeError: 模块 'tensorflow.contrib.lite' 没有属性 'toco_convert'
如何解决这个问题?
【问题讨论】:
标签: android tensorflow keras tensorflow-lite