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

anaconda3 python3.7 安装好tensorflow 后出现上面的问题,原因是安装的tensorflow版本是2.0的,所以使用以前的代码tensorflow中的函数不兼容.

猜你喜欢

转载自www.cnblogs.com/kabe/p/11871360.html