Error:
tf.scalar_summary(l.op.name + ' (raw)', l)
AttributeError: 'module' object has no attribute 'scalar_summary'
solve:
tf.scalar_summary('images', images)改为:tf.summary.scalar('images', images)
tf.image_summary('images', images)改为:tf.summary.image('images', images)
Similar are:
tf.train.SummaryWriter改为:tf.summary.FileWriter
tf.merge_all_summaries() changed to: summary_op = tf.summaries.merge_all()
Change tf.histogram_summary(var.op.name, var) to: tf.summaries.histogram()
concated = tf.concat(1, [indices, sparse_labels])改为:concated = tf.concat([indices, sparse_labels], 1)
Deprecated APIs and replacements in Tensorflow
tf.mul tf.sub tf.neg deprecated
Can be replaced by tf.multiply tf.subtract tf.negative respectively