zl程序教程

您现在的位置是:首页 >  其它

当前栏目

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

解决 成功 No Tensorflow module has attribute AttributeError
2023-09-14 09:04:50 时间

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