成功解决AttributeError: module tensorflow has no attribute lite
目录
解决问题
self.interp_palm = tf.lite.Interpreter(palm_model)
AttributeError: module 'tensorflow' has no attribute 'lite'
解决思路
属性错误:模块“tensorflow”没有属性“lite”
解决方法
参考:TensorFlow函数教程:tf.lite.Interpreter
TensorFlow版本不一致导致错误,需要将TensorFlow版本升级到TensorFlow2.0
更多文章请关注《万象专栏》
转载请注明出处:https://www.wanxiangsucai.com/read/cv16693