# tf.raw_ops.WriteScalarSummary

<br />

Writes a scalar summary.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.WriteScalarSummary(
        writer, step, tag, value, name=None
    )

Writes scalar `value` at `step` with `tag` using summary `writer`.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `writer` | A `Tensor` of type `resource`. |
| `step` | A `Tensor` of type `int64`. |
| `tag` | A `Tensor` of type `string`. |
| `value` | A `Tensor`. Must be one of the following types: `float32`, `float64`, `int32`, `uint8`, `int16`, `int8`, `int64`, `bfloat16`, `uint16`, `half`, `uint32`, `uint64`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The created Operation. ||

<br />