tf.contrib.deprecated.scalar_summary

tf.contrib.deprecated.scalar_summary(
    tags,
    values,
    collections=None,
    name=None
)

Defined in tensorflow/python/ops/logging_ops.py.

See the guide: Upgrade to TensorFlow 1.0 > Upgrading your code manually

Outputs a Summary protocol buffer with scalar values. (deprecated)

THIS FUNCTION IS DEPRECATED. It will be removed after 2016-11-30. Instructions for updating: Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported.

This ops is deprecated. Please switch to tf.summary.scalar. For an explanation of why this op was deprecated, and information on how to migrate, look 'here'

The input tags and values must have the same shape. The generated summary has a summary value for each tag-value pair in tags and values.

Args:

  • tags: A string Tensor. Tags for the summaries.
  • values: A real numeric Tensor. Values for the summaries.
  • collections: Optional list of graph collections keys. The new summary op is added to these collections. Defaults to [GraphKeys.SUMMARIES].
  • name: A name for the operation (optional).

Returns:

A scalar Tensor of type string. The serialized Summary protocol buffer.