千家信息网

tensorboard可视化遇到的问题

发表于:2025-12-02 作者:千家信息网编辑
千家信息网最后更新 2025年12月02日,由于 TensorFlow版本差异,经常会报模块对象没有某属性的错误,先把tensorboard可视化过程遇到的几个报错解决方案记录如下:1. AttributeError: 'module' obj
千家信息网最后更新 2025年12月02日tensorboard可视化遇到的问题

由于 TensorFlow版本差异,经常会报模块对象没有某属性的错误,先把tensorboard可视化过程遇到的几个报错解决方案记录如下:

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

histogram_summary 改为:tf.summary.histogram


2. AttributeError: 'module' object has no attribute 'scalar_summary'

tf.scalar_summary 改为:tf.summary.scalar


3.AttributeError: 'module' object has no attribute 'merge_all_summaries'

tf.merge_all_summaries() 改为:tf.summary.merge_all()



0