tf.contrib.summary.create_file_writer
Creates a summary file writer in the current context under the given name.
tf.contrib.summary.create_file_writer( logdir, max_queue=None, flush_millis=None, filename_suffix=None, name=None )
Args | |
---|---|
logdir | a string, or None. If a string, creates a summary file writer which writes to the directory named by the string. If None, returns a mock object which acts like a summary writer but does nothing, useful to use as a context manager. |
max_queue | the largest number of summaries to keep in a queue; will flush once the queue gets bigger than this. Defaults to 10. |
flush_millis | the largest interval between flushes. Defaults to 120,000. |
filename_suffix | optional suffix for the event file name. Defaults to .v2 . |
name | Shared name for this SummaryWriter resource stored to default Graph. Defaults to the provided logdir prefixed with logdir: . Note: if a summary writer resource with this shared name already exists, the returned SummaryWriter wraps that resource and the other arguments have no effect. |
Returns | |
---|---|
Either a summary writer or an empty object which can be used as a summary writer. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/summary/create_file_writer