parameters: (self, log_dir, max_queue=10, flush_secs=120, filename_suffix='')
docstring: Creates a `FileWriter` and an event file.
          On construction the writer creates a new event file in `log_dir`.
          The other arguments to the constructor control the asynchronous writes to
          the event file.
  
          Args:
            log_dir: A string. Directory where event file will be written.
            max_queue: Integer. Size of the queue for pending events and
              summaries before one of the 'add' calls forces a flush to disk.
              Default is ten items.
            flush_secs: Number. How often, in seconds, to flush the
              pending events and summaries to disk. Default is every two minutes.
            filename_suffix: A string. Suffix added to all event filenames
              in the log_dir directory. More details on filename construction in
              tensorboard.summary.writer.event_file_writer.EventFileWriter.
docstring_summary: Creates a `FileWriter` and an event file.
          On construction the writer creates a new event file in `log_dir`.
          The other arguments to the constructor control the asynchronous writes to
          the event file.
docstring_tokens: Creates a FileWriter and an event file . On construction the writer creates a new event file in log_dir . The other arguments to the constructor control the asynchronous writes to the event file .
function: def __init__(self, log_dir, max_queue=10, flush_secs=120, filename_suffix=''):
          """Creates a `FileWriter` and an event file.
          On construction the writer creates a new event file in `log_dir`.
          The other arguments to the constructor control the asynchronous writes to
          the event file.
  
          Args:
            log_dir: A string. Directory where event file will be written.
            max_queue: Integer. Size of the queue for pending events and
              summaries before one of the 'add' calls forces a flush to disk.
              Default is ten items.
            flush_secs: Number. How often, in seconds, to flush the
              pending events and summaries to disk. Default is every two minutes.
            filename_suffix: A string. Suffix added to all event filenames
              in the log_dir directory. More details on filename construction in
              tensorboard.summary.writer.event_file_writer.EventFileWriter.
          """
          # Sometimes PosixPath is passed in and we need to coerce it to
          # a string in all cases
          # TODO: See if we can remove this in the future if we are
          # actually the ones passing in a PosixPath
          log_dir = str(log_dir)
          self.event_writer = EventFileWriter(
              log_dir, max_queue, flush_secs, filename_suffix)
function_tokens: def __init__ ( self , log_dir , max_queue = 10 , flush_secs = 120 , filename_suffix = '' ) : # Sometimes PosixPath is passed in and we need to coerce it to # a string in all cases # TODO: See if we can remove this in the future if we are # actually the ones passing in a PosixPath log_dir = str ( log_dir ) self . event_writer = EventFileWriter ( log_dir , max_queue , flush_secs , filename_suffix )