前4个是 V0.11 的API 用在 V1.0 的错误
AttributeError: ‘module’ object has no attribute ‘merge_all_summaries’
tf.merge_all_summaries() 改为:summary_op = tf.summary.merge_all()
AttributeError: ‘module’ object has no attribute ‘SummaryWriter’
tf.train.SummaryWriter 改为:tf.summary.FileWriter
AttributeError: ‘module’ object has no attribute ‘scalar_summary’
tf.scalar_summary 改为:tf.summary.scalar
AttributeError: ‘module’ object has no attribute ‘histogram_summary’
histogram_summary 改为:tf.summary.histogram
下边这个是 V1.0 的API 用在 V0.11 的错误
File “dis-alexnet_benchmark.py”, line 110, in alexnet_v2
biases_initializer=tf.zeros_initializer(),
TypeError: zeros_initializer() takes at least 1 argument (0 given)
将 biases_initializer=tf.zeros_initializer() 改为:biases_initializer=tf.zeros_initializer
本文章为转载原文章链接为:http://blog.csdn.net/s_sunnyy/article/details/70999462