Graph-mode only. Returns the list of ops to create all summary writers. Returns: The initializer ops. Raises: RuntimeError: If in Eager mode.
()
| 527 | |
| 528 | |
| 529 | def summary_writer_initializer_op(): |
| 530 | """Graph-mode only. Returns the list of ops to create all summary writers. |
| 531 | |
| 532 | Returns: |
| 533 | The initializer ops. |
| 534 | |
| 535 | Raises: |
| 536 | RuntimeError: If in Eager mode. |
| 537 | """ |
| 538 | if context.executing_eagerly(): |
| 539 | raise RuntimeError( |
| 540 | "tf.contrib.summary.summary_writer_initializer_op is only " |
| 541 | "supported in graph mode.") |
| 542 | return ops.get_collection(_SUMMARY_WRITER_INIT_COLLECTION_NAME) |
| 543 | |
| 544 | |
| 545 | _INVALID_SCOPE_CHARACTERS = re.compile(r"[^-_/.A-Za-z0-9]") |
no test coverage detected