MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / summary_writer_initializer_op

Function summary_writer_initializer_op

tensorflow/python/ops/summary_ops_v2.py:529–542  ·  view source on GitHub ↗

Graph-mode only. Returns the list of ops to create all summary writers. Returns: The initializer ops. Raises: RuntimeError: If in Eager mode.

()

Source from the content-addressed store, hash-verified

527
528
529def 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]")

Callers 1

initializeFunction · 0.85

Calls 2

executing_eagerlyMethod · 0.80
get_collectionMethod · 0.45

Tested by

no test coverage detected