成功解决AttributeError: module tensorflow has no attribute lite

成功解决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

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章