成功解决 AttributeError: module 'tensorflow' has no attribute 'sub'
生活随笔
收集整理的這篇文章主要介紹了
成功解决 AttributeError: module 'tensorflow' has no attribute 'sub'
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
成功解決 AttributeError: module 'tensorflow' has no attribute 'sub'
?
?
?
?
目錄
解決問題
解決思路
解決方法
?
?
?
?
?
解決問題
AttributeError: module 'tensorflow' has no attribute 'sub'
?
?
?
?
?
?
解決思路
由于不同的TensorFlow版本之間某些函數(shù)的用法引起的錯誤
屬性錯誤:模塊“tensorflow”沒有屬性“sub”
?
?
?
?
?
解決方法
將
tf.sub
改為
tf.subtract
?
哈哈,大功告成!
?
?
?
?
總結(jié)
以上是生活随笔為你收集整理的成功解决 AttributeError: module 'tensorflow' has no attribute 'sub'的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Py之huaweicloud-sdk-p
- 下一篇: 成功解决eric6-EditorConf