【发布时间】:2020-10-10 18:57:11
【问题描述】:
“tflite_model = converter.convert()”行给出了 AttributeError: 'str' object has no attribute 'call'。
查看代码截图->1
代码:
import tensorflow as tf
converter = tf.lite.TFLiteConverter.from_keras_model('///Users/theunskuhn/Desktop/Savedfile/basic_malaria_pos_neg_v3.h5')
converter.experimental_new_converter = True
tflite_model = converter.convert()
open("basic_malaria_pos_neg_v3.tflite", "wb").write(tflite_model)
错误: AttributeError: 'str' 对象没有属性 'call'
错误指向第 4 行:“tflite_model = converter.convert()”
【问题讨论】:
标签: tensorflow keras converters tensorflow-lite