TF版本升级问题:成功解决AttributeError: module tensorflow has no attribute mul

TF版本升级问题:成功解决AttributeError: module 'tensorflow' has no attribute 'mul'

目录

解决问题

解决思路

解决方法


解决问题

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

扫描二维码关注公众号,回复: 11297549 查看本文章

解决思路

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

解决方法

tf.mul(input1, input2) 

改为 

tf.multiply(input1, input2) 

哈哈,大功告成!

猜你喜欢

转载自blog.csdn.net/qq_41185868/article/details/106371840