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

 

 

 

 

 

 

 

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