tensorboard使用过程中常见报错解决方案

在使用tensorboard将神经网络可视化的过程中,常见遇见的一些报错及其修正方案:

 

AttributeError: 'module' object has no attribute 'SummaryWriter'

tf.train.SummaryWriter

改为:tf.summary.FileWriter

 

AttributeError: 'module' object has no attribute 'summaries'

tf.merge_all_summaries()

改为:tf.summary.merge_all()

 

AttributeError: 'module' object has no attribute 'histogram_summary'

tf.histogram_summary()

改为:tf.summary.histogram()

 

tf.scalar_summary()

改为:tf.summary.scalar()

 

tf.image_summary()

改为:tf.summary.image()

 

参考资料:

https://blog.csdn.net/edwards_june/article/details/65652385

https://blog.csdn.net/waterydd/article/details/70237984

 

你可能感兴趣的:(TensorFlow,软件使用笔记)