TF版本升級問題:成功解決AttributeError: module tensorflow has no attribute mul

TF版本升級問題:成功解決AttributeError: module 'tensorflow' has no attribute 'mul'

 

 

目錄

解決問題

解決思路

解決方法


 

 

解決問題

AttributeError: module 'tensorflow' has no attribute 'mul'

 

解決思路

tf.mul已經在新版本中被移除,使用 tf.multiply 代替

 

 

解決方法

tf.mul(input1, input2) 

改爲 

tf.multiply(input1, input2) 

哈哈,大功告成!

 

 

 

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