成功解决AttributeError: module 'tensorflow' has no attribute 'random_normal'
目录
解决问题
AttributeError: module 'tensorflow' has no attribute 'random_normal'
解决思路
属性错误:模块“tensorflow”没有属性“random_normal”
解决方法
tensorflow版本不同造成的,在tensorflow2版本以前的函数为random_normal,升级后改为random.normal,
所以,在tensorflow2版本的环境中,只需要掉替换即可!