tf.scalar_summary(‘images’, images)改为:tf.summary.scalar(‘images’, images)
tf.image_summary(‘images’, images)改为:tf.summary.image(‘images’, images)
类似的有:
tf.train.SummaryWriter改为:tf.summary.FileWriter
tf.merge_all_summaries()改为:summary_op = tf.summary.merge_all
tf.histogram_summary(var.op.name, var)改为: tf.summary.histogram
concated = tf.concat(1, [indices, sparse_labels])改为:concated = tf.concat([indices, sparse_labels], 1)