
    BVh                     N    d Z ddlmZ ddlmZ ddlmZ ddl	m
Z
  G d de      Zy)	z9Reads Summaries from and writes Summaries to event files.    )summary_iterator)
FileWriter)FileWriterCache)
deprecatedc                   @     e Zd Z edd      	 	 	 	 d fd	       Z xZS )SummaryWriterz
2016-11-30zfPlease switch to tf.summary.FileWriter. The interface and behavior is the same; this is just a rename.c                 4    t         t        |   |||||       y)a  Creates a `SummaryWriter` and an event file.

    This class is deprecated, and should be replaced with tf.summary.FileWriter.

    On construction the summary writer creates a new event file in `logdir`.
    This event file will contain `Event` protocol buffers constructed when you
    call one of the following functions: `add_summary()`, `add_session_log()`,
    `add_event()`, or `add_graph()`.

    If you pass a `Graph` to the constructor it is added to
    the event file. (This is equivalent to calling `add_graph()` later).

    TensorBoard will pick the graph from the file and display it graphically so
    you can interactively explore the graph you built. You will usually pass
    the graph from the session in which you launched it:

    ```python
    ...create a graph...
    # Launch the graph in a session.
    sess = tf.compat.v1.Session()
    # Create a summary writer, add the 'graph' to the event file.
    writer = tf.compat.v1.summary.FileWriter(<some-directory>, sess.graph)
    ```

    The other arguments to the constructor control the asynchronous writes to
    the event file:

    *  `flush_secs`: How often, in seconds, to flush the added summaries
       and events to disk.
    *  `max_queue`: Maximum number of summaries or events pending to be
       written to disk before one of the 'add' calls block.

    Args:
      logdir: A string. Directory where event file will be written.
      graph: A `Graph` object, such as `sess.graph`.
      max_queue: Integer. Size of the queue for pending events and summaries.
      flush_secs: Number. How often, in seconds, to flush the
        pending events and summaries to disk.
      graph_def: DEPRECATED: Use the `graph` argument instead.
    N)superr   __init__)selflogdirgraph	max_queue
flush_secs	graph_def	__class__s         U/home/dcms/DCMS/lib/python3.12/site-packages/tensorflow/python/training/summary_io.pyr   zSummaryWriter.__init__   s     b 
-'y*(13    )N
   x   N)__name__
__module____qualname__r   r   __classcell__)r   s   @r   r   r      s/    l=>
 /3>/3r   r   N)__doc__*tensorflow.python.summary.summary_iteratorr   'tensorflow.python.summary.writer.writerr   _FileWriter-tensorflow.python.summary.writer.writer_cacher   SummaryWriterCache"tensorflow.python.util.deprecationr   r    r   r   <module>r#      s&    @ H M _ 943K 43r   