Merges summaries. 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
(inputs, collections=None, name=None)
| 329 | |
| 330 | @tf_export(v1=['summary.merge']) |
| 331 | def merge(inputs, collections=None, name=None): |
| 332 | # pylint: disable=line-too-long |
| 333 | """Merges summaries. |
| 334 | |
| 335 | This op creates a |
| 336 | [`Summary`](https://www.tensorflow.org/code/tensorflow/core/framework/summary.proto) |
| 337 | protocol buffer that contains the union of all the values in the input |
| 338 | summaries. |
| 339 | |
| 340 | When the Op is run, it reports an `InvalidArgument` error if multiple values |
| 341 | in the summaries to merge use the same tag. |
| 342 | |
| 343 | Args: |
| 344 | inputs: A list of `string` `Tensor` objects containing serialized `Summary` |
| 345 | protocol buffers. |
| 346 | collections: Optional list of graph collections keys. The new summary op is |
| 347 | added to these collections. Defaults to `[]`. |
| 348 | name: A name for the operation (optional). |
| 349 | |
| 350 | Returns: |
| 351 | A scalar `Tensor` of type `string`. The serialized `Summary` protocol |
| 352 | buffer resulting from the merging. |
| 353 | |
| 354 | Raises: |
| 355 | RuntimeError: If called with eager mode enabled. |
| 356 | |
| 357 | @compatibility(eager) |
| 358 | Not compatible with eager execution. To write TensorBoard |
| 359 | summaries under eager execution, use `tf.contrib.summary` instead. |
| 360 | @end_compatibility |
| 361 | """ |
| 362 | # pylint: enable=line-too-long |
| 363 | if _context.executing_eagerly(): |
| 364 | raise RuntimeError( |
| 365 | 'Merging tf.summary.* ops is not compatible with eager execution. ' |
| 366 | 'Use tf.contrib.summary instead.') |
| 367 | if _distribute_summary_op_util.skip_summary(): |
| 368 | return _constant_op.constant('') |
| 369 | name = _summary_op_util.clean_tag(name) |
| 370 | with _ops.name_scope(name, 'Merge', inputs): |
| 371 | val = _gen_logging_ops.merge_summary(inputs=inputs, name=name) |
| 372 | _summary_op_util.collect(val, collections, []) |
| 373 | return val |
| 374 | |
| 375 | |
| 376 | @tf_export(v1=['summary.merge_all']) |
no test coverage detected