# tf.raw_ops.WriteSummary

<br />

Writes a tensor summary.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.WriteSummary(
        writer, step, tensor, tag, summary_metadata, name=None
    )

Writes `tensor` at `step` with `tag` using summary `writer`.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `writer` | A `Tensor` of type `resource`. |
| `step` | A `Tensor` of type `int64`. |
| `tensor` | A `Tensor`. |
| `tag` | A `Tensor` of type `string`. |
| `summary_metadata` | A `Tensor` of type `string`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

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

<br />