tf.summary.scalar()

tf.summary.scalar(display_name, tensor, description='', labels=None, collections=None, name=None)

Outputs a Summary protocol buffer containing a single scalar value.

The generated Summary has a Tensor.proto containing the input Tensor.

Args:
  • display_name: A name to associate with the data series. Will be used to organize output data and as a name in visualizers.
  • tensor: A tensor containing a single floating point or integer value.
  • description: An optional long description of the data being output.
  • labels: a list of strings used to attach metadata.
  • collections: Optional list of graph collections keys. The new summary op is added to these collections. Defaults to [GraphKeys.SUMMARIES].
  • name: An optional name for the generated node (optional).
Returns:

A scalar Tensor of type string. Which contains a Summary protobuf.

Raises:
  • ValueError: If tensor has the wrong shape or type.
doc_TensorFlow
2016-10-14 13:09:20
Comments
Leave a Comment

Please login to continue.