/usr/local/lib64/python3.6/site-packages/torch/utils/tensorboard/__pycache__
Edit: /usr/local/lib64/python3.6/site-packages/torch/utils/tensorboard/__pycache__/writer.cpython-36.pyc (42668B)
3
Eg @ s d Z ddlZddlZddlZddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ ddl
mZ d d
lmZ d dlmZmZmZmZmZ d dlmZ d d
lmZ d dlmZ d dlmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z* G dd de+Z,G dd de+Z-dS )zlProvides an API for writing protocol buffers to event files to be
consumed by TensorBoard for visualization. N)tf)
SessionLog)Event) event_pb2)ProjectorConfig)EventFileWriter )make_np)make_matmake_spritemake_tsvwrite_pbtxtget_embedding_info)load_onnx_graph)graph)figure_to_image)
scalar histogram
histogram_rawimageaudiotextpr_curvepr_curve_rawvideocustom_scalarsimage_boxesmeshhparamsc @ sb e Zd ZdZdddZdd Zdd
dZddd
ZdddZdddZ dd Z
dd Zdd Zd S )
FileWritera Writes protocol buffers to event files to be consumed by TensorBoard.
The `FileWriter` class provides a mechanism to create an event file in a
given directory and add summaries and events to it. The class updates the
file contents asynchronously. This allows a training program to call methods
to add data to the file directly from the training loop, without slowing down
training.
x c C s t |}t||||| _dS )ag 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.
N)strr event_writer)selflog_dir max_queue
flush_secsfilename_suffix r* J/usr/local/lib64/python3.6/site-packages/torch/utils/tensorboard/writer.py__init__&