github 老版本python遇到的问题集合

tf.train.SummaryWriter -------------------->  tf.summary.FileWriter

tf.scalar_summary          ----------------->  tf.summary.scalar

tf.histogram_summary     ------------------> tf.summary.histogram

xrange()                          --------------------> range()

更多的变更可以自己去查:

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/compatibility/tf_upgrade.py#L116

猜你喜欢

转载自blog.csdn.net/shuijiaobuzhundahulu/article/details/82111669