Merges all summaries collected in the default graph. Args: key: `GraphKey` used to collect the summaries. Defaults to `GraphKeys.SUMMARIES`. scope: Optional scope used to filter the summary ops, using `re.match` Returns: If no summaries were collected, returns None. Otherwi
(key=_ops.GraphKeys.SUMMARIES, scope=None, name=None)
| 375 | |
| 376 | @tf_export(v1=['summary.merge_all']) |
| 377 | def merge_all(key=_ops.GraphKeys.SUMMARIES, scope=None, name=None): |
| 378 | """Merges all summaries collected in the default graph. |
| 379 | |
| 380 | Args: |
| 381 | key: `GraphKey` used to collect the summaries. Defaults to |
| 382 | `GraphKeys.SUMMARIES`. |
| 383 | scope: Optional scope used to filter the summary ops, using `re.match` |
| 384 | |
| 385 | Returns: |
| 386 | If no summaries were collected, returns None. Otherwise returns a scalar |
| 387 | `Tensor` of type `string` containing the serialized `Summary` protocol |
| 388 | buffer resulting from the merging. |
| 389 | |
| 390 | Raises: |
| 391 | RuntimeError: If called with eager execution enabled. |
| 392 | |
| 393 | @compatibility(eager) |
| 394 | Not compatible with eager execution. To write TensorBoard |
| 395 | summaries under eager execution, use `tf.contrib.summary` instead. |
| 396 | @end_compatibility |
| 397 | """ |
| 398 | if _context.executing_eagerly(): |
| 399 | raise RuntimeError( |
| 400 | 'Merging tf.summary.* ops is not compatible with eager execution. ' |
| 401 | 'Use tf.contrib.summary instead.') |
| 402 | summary_ops = _ops.get_collection(key, scope=scope) |
| 403 | if not summary_ops: |
| 404 | return None |
| 405 | else: |
| 406 | return merge(summary_ops, name=name) |
| 407 | |
| 408 | |
| 409 | @tf_export(v1=['summary.get_summary_description']) |
nothing calls this directly
no test coverage detected