由于Tensorflow版本更新,部分函数有所改动,具体整理如下(部分):
merged_summary_op = tf.merge_all_summaries() ------旧版本
merged_summary_op = tf.summary.merge_all() ------新版本
AttributeError: ‘module’ 'tensorflow' has no attribute ‘scalar_summary’
tf.scalar_summary("accuracy", accuracy) ------旧版本
tf.summary.scalar("accuracy", accuracy) ------新版本