# tf.summary.flush

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/ops/summary_ops_v2.py#L1099-L1121) |

Forces summary writer to send any buffered data to storage.

    tf.summary.flush(
        writer=None, name=None
    )

This operation blocks until that finishes.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `writer` | The [`tf.summary.SummaryWriter`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/summary/SummaryWriter) to flush. If None, the current default writer will be used instead; if there is no current writer, this returns [`tf.no_op`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/no_op). |
| `name` | Ignored legacy argument for a name for the operation. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The created [`tf.Operation`](https://www.tensorflow.org/versions/r2.13/api_docs/python/tf/Operation). ||

<br />