Summaries

Summary reference

Writing event files

FileWriter(logdir; graph=get_def_graph())

The FileWriter type 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.

On construction the summary writer creates a new event file in logdir.

If you pass a Graph to the constructor it is added to the event file.

Arguments:

  • logdir: A string. Directory where event file will be written.

  • graph: A Graph object.

source

Summary operations

 scalar_summary(tags, values)
source
 histogram_summary(tag, values)
source
 image_summary(tag, tensor; max_images=3, bad_color=?)
source
merge_all(key=:Summaries)

Merges all summaries collected in the default graph.

Args: key: GraphKey used to collect the summaries. Defaults to :Summaries

Returns: If no summaries were collected, returns nothing. Otherwise returns a scalar Tensor of type String containing the serialized Summary protocol buffer resulting from the merging.

source