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

痛定思痛。 2022-02-25 11:09 190阅读 0赞

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)

成功!

发表评论

表情:
评论列表 (有 0 条评论,190人围观)

还没有评论,来说两句吧...

相关阅读