# tf.raw_ops.WriteImageSummary

<br />

Writes an image summary.

#### View aliases


**Compat aliases for migration**

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

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

<br />

    tf.raw_ops.WriteImageSummary(
        writer, step, tag, tensor, bad_color, max_images=3, name=None
    )

Writes image `tensor` at `step` with `tag` using summary `writer`.
`tensor` is image with shape \[height, width, channels\].

<br />

<br />

<br />

| ## Args ||
|---|---|
| `writer` | A `Tensor` of type `resource`. |
| `step` | A `Tensor` of type `int64`. |
| `tag` | A `Tensor` of type `string`. |
| `tensor` | A `Tensor`. Must be one of the following types: `uint8`, `float64`, `float32`, `half`. |
| `bad_color` | A `Tensor` of type `uint8`. |
| `max_images` | An optional `int` that is `>= 1`. Defaults to `3`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

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

<br />