tf.summary.merge
Stay organized with collections
Save and categorize content based on your preferences.
Merges summaries.
tf.summary.merge(
inputs, collections=None, name=None
)
This op creates a
Summary
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.
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).
|
Returns |
A scalar Tensor of type string . The serialized Summary protocol
buffer resulting from the merging.
|
Raises |
RuntimeError
|
If called with eager mode enabled.
|
Eager Compatibility
Not compatible with eager execution. To write TensorBoard
summaries under eager execution, use tf.contrib.summary
instead.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.summary.merge\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/summary/summary.py#L330-L373) |\n\nMerges summaries.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.summary.merge`](/api_docs/python/tf/compat/v1/summary/merge)\n\n\u003cbr /\u003e\n\n tf.summary.merge(\n inputs, collections=None, name=None\n )\n\nThis op creates a\n[`Summary`](https://www.tensorflow.org/code/tensorflow/core/framework/summary.proto)\nprotocol buffer that contains the union of all the values in the input\nsummaries.\n\nWhen the Op is run, it reports an `InvalidArgument` error if multiple values\nin the summaries to merge use the same tag.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|---------------|--------------------------------------------------------------------------------------------------------------|\n| `inputs` | A list of `string` `Tensor` objects containing serialized `Summary` protocol buffers. |\n| `collections` | Optional list of graph collections keys. The new summary op is added to these collections. Defaults to `[]`. |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A scalar `Tensor` of type `string`. The serialized `Summary` protocol buffer resulting from the merging. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|----------------|------------------------------------|\n| `RuntimeError` | If called with eager mode enabled. |\n\n\u003cbr /\u003e\n\n#### Eager Compatibility\n\nNot compatible with eager execution. To write TensorBoard\nsummaries under eager execution, use [`tf.contrib.summary`](../../tf/contrib/summary) instead."]]