# tf.contrib.summary.import_event

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/summary_ops_v2.py#L888-L904) |

Writes a [`tf.compat.v1.Event`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Event) binary proto.

    tf.contrib.summary.import_event(
        tensor, name=None
    )

This can be used to import existing event logs into a new summary writer sink.
Please note that this is lower level than the other summary functions and
will ignore the [`tf.summary.should_record_summaries`](https://www.tensorflow.org/api_docs/python/tf/summary/should_record_summaries) setting.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `tensor` | A [`tf.Tensor`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Tensor) of type `string` containing a serialized [`tf.compat.v1.Event`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Event) proto. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

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

<br />