Write a scalar summary.

Used in the notebooks

Used in the guide Used in the tutorials

See also tf.summary.image, tf.summary.histogram, tf.summary.SummaryWriter.

Writes simple numeric values for later analysis in TensorBoard. Writes go to the current default summary writer. Each summary point is associated with an integral step value. This enables the incremental logging of time series data. A common usage of this API is to log loss during training to produce a loss curve.

For example:

test_summary_writer = tf.summary.create_file_writer('test/logdir')
with test_summary_writer.as_default():