||
tensorflow 'module' object has no attribute 'scalar_summary' 新版本更新为:
tf.audio_summary
should be renamed to tf.summary.audio
tf.contrib.deprecated.histogram_summary
should be renamed to tf.summary.histogram
tf.contrib.deprecated.scalar_summary
should be renamed to tf.summary.scalar
tf.histogram_summary
should be renamed to tf.summary.histogram
tf.image_summary
should be renamed to tf.summary.image
tf.merge_all_summaries
should be renamed to tf.summary.merge_all
tf.merge_summary
should be renamed to tf.summary.merge
tf.scalar_summary
should be renamed to tf.summary.scalar
tf.train.SummaryWriter
should be renamed to tf.summary.FileWriter
参考:https://stackoverflow.com/questions/41066244/tensorflow-module-object-has-no-attribute-scalar-summary
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-10-19 23:00
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社