各种代码错误

AttributeError: module 'tensorfl

2019-08-14  本文已影响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)

成功!

原文链接:https://blog.csdn.net/NCTU_to_prove_safety/article/details/88954532

上一篇 下一篇

猜你喜欢

热点阅读