tf.contrib.summary.SummaryWriter

Class SummaryWriter

Defined in tensorflow/python/ops/summary_ops_v2.py.

Encapsulates a stateful summary writer resource.

See also: - tf.summary.create_file_writer - tf.summary.create_db_writer

__init__

__init__(
    resource,
    init_op_fn
)

Initialize self. See help(type(self)) for accurate signature.

Methods

tf.contrib.summary.SummaryWriter.as_default

as_default()

Enables summary writing within a with block.

tf.contrib.summary.SummaryWriter.close

close()

Operation to flush and close the summary writer resource.

tf.contrib.summary.SummaryWriter.flush

flush()

Operation to force the summary writer to flush any buffered data.

tf.contrib.summary.SummaryWriter.init

init()

Operation to initialize the summary writer resource.

tf.contrib.summary.SummaryWriter.set_as_default

set_as_default()

Enables this summary writer for the current thread.