tensorflow显示没有random_uniform模块
解决办法:tf2.0里改名字了,用tf.random.uniform代替
tf1.*版本支持一键转化为2.0版本
迁移方法
tf_upgrade_v2 --infile v1.*.py --outfile v2.0.py
v1.*.py为旧版本python文件
参考链接:https://www.mashangxue123.com/tensorflow/tf2-guide-migration_guide.html
https://tensorflow.google.cn/guide/upgrade