转自:https://blog.csdn.net/s_sunnyy/article/details/70999462
这几天分别基于tensorflow0.11和1.0版本测试,记录下两个版本不同的API,
参考:http://blog.csdn.NET/edwards_june/article/details/65652385
前4个是 V0.11 的API 用在 V1.0 的错误
1. AttributeError: ‘module’ object has no attribute ‘merge_all_summaries’
>> tf.merge_all_summaries() 改为:summary_op = tf.summary.merge_all()
2. AttributeError: ‘module’ object has no attribute ‘SummaryWriter’
>> tf.train.SummaryWriter 改为:tf.summary.FileWriter
3. AttributeError: ‘module’ object has no attribute ’scalar_summary’
>> tf.scalar_summary 改为:tf.summary.scalar
4. AttributeError: ‘module’ object has no attribute ‘histogram_summary’