# tf.compat.v1.summary.merge

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.1.0/tensorflow/python/summary/summary.py#L330-L373) |

Merges summaries.

    tf.compat.v1.summary.merge(
        inputs, collections=None, name=None
    )

This op creates a
[`Summary`](https://www.tensorflow.org/code/tensorflow/core/framework/summary.proto)
protocol buffer that contains the union of all the values in the input
summaries.

When the Op is run, it reports an `InvalidArgument` error if multiple values
in the summaries to merge use the same tag.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `inputs` | A list of `string` `Tensor` objects containing serialized `Summary` protocol buffers. |
| `collections` | Optional list of graph collections keys. The new summary op is added to these collections. Defaults to `[]`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A scalar `Tensor` of type `string`. The serialized `Summary` protocol buffer resulting from the merging. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `RuntimeError` | If called with eager mode enabled. |

<br />

#### Eager Compatibility

Not compatible with eager execution. To write TensorBoard
summaries under eager execution, use `tf.contrib.summary` instead.