# tf.raw_ops.ScalarSummary

<br />

Outputs a `Summary` protocol buffer with scalar values.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.ScalarSummary`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/ScalarSummary)

<br />

    tf.raw_ops.ScalarSummary(
        tags, values, name=None
    )

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`.

<br />

<br />

<br />

| ## Args ||
|---|---|---|
| `tags` | A `Tensor` of type `string`. Tags for the summary. |
| `values` | A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`. Same shape as `tags. Values for the summary. </td> </tr><tr> <td>`name\` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `string`. ||

<br />