tf.compat.v1.summary.scalar

View source on GitHub

Outputs a Summary protocol buffer containing a single scalar value.

tf.compat.v1.summary.scalar(
    name, tensor, collections=None, family=None
)

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

Args:

Returns:

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

Raises: