org.platanios.tensorflow.api.io.events
Path to a directory containing TensorFlow events files, or a single TensorFlow events file. The accumulator will load events from this path.
Information on how much data the event accumulator should store in memory. The
default size guidance tries not to store too much so as to avoid consuming all of
the client's memory. The sizeGuidance
should be a map from event types to integers
representing the number of items to keep in memory, per tag for items of that event
type. If the size is 0
, then all events are stored. Images, audio, and histograms
tend to be very large and thus storing all of them is not recommended.
Information on how the event accumulator should compress histogram data for the CompressedHistogramEventType event type.
Boolean value indicating whether to discard any events that were "orphaned" by a TensorFlow restart.
Returns all audio events associated with the provided summary tag.
Returns all compressed histogram events associated with the provided summary tag.
Returns the timestamp (in seconds) of the first event.
Returns the timestamp (in seconds) of the first event.
If the first event has been loaded (either by this method or by reload()
, then this method returns immediately.
Otherwise, it loads the first event and then returns. Note that this means that calling reload()
will cause this
method to block until reload()
has finished.
Returns the graph definition, if there is one.
Returns the graph definition, if there is one.
If the graph is stored directly, the method returns it. If no graph is stored directly, but a meta-graph is stored containing a graph, the method returns that graph.
Information on how the event accumulator should compress histogram data for the CompressedHistogramEventType event type.
Returns all histogram events associated with the provided summary tag.
Returns all image events associated with the provided summary tag.
Returns the meta-graph definition, if there is one.
Returns the meta-graph definition, if there is one.
Path to a directory containing TensorFlow events files, or a single TensorFlow events file.
Path to a directory containing TensorFlow events files, or a single TensorFlow events file. The accumulator will load events from this path.
Returns a sequence with paths to all the registered assets for the provided plugin name.
Returns a sequence with paths to all the registered assets for the provided plugin name.
If a plugins directory does not exist in the managed directory, then this method returns an empty list. This maintains compatibility with old log directories that contain no plugin sub-directories.
Returns a map from tags to content specific to the specified plugin.
Boolean value indicating whether to discard any events that were "orphaned" by a TensorFlow restart.
Loads all events added since the last call to reload()
and returns this event accumulator.
Loads all events added since the last call to reload()
and returns this event accumulator. If reload()
was
never called before, then it loads all events in the path.
Retrieves a particular plugin asset from the managed directory and returns it as a string.
Returns the run metadata associated with the provided summary tag.
Returns the run metadata associated with the provided summary tag.
Returns all scalar events associated with the provided summary tag.
Information on how much data the event accumulator should store in memory.
Information on how much data the event accumulator should store in memory. The
default size guidance tries not to store too much so as to avoid consuming all of
the client's memory. The sizeGuidance
should be a map from event types to integers
representing the number of items to keep in memory, per tag for items of that event
type. If the size is 0
, then all events are stored. Images, audio, and histograms
tend to be very large and thus storing all of them is not recommended.
Returns the summary metadata associated with the provided summary tag.
Returns a map from event types to all corresponding tags that have been accumulated.
Returns all tensor events associated with the provided summary tag.
Accumulates event values collected from the provided path.
The EventAccumulator is intended to provide a convenient interface for loading event data written during a TensorFlow run (or otherwise). TensorFlow writes out event ProtoBuf objects, which have a timestamp and step number associated with them, and often also contain a Summary. Summaries can store different kinds of data like a scalar value, an image, audio, or a histogram. Each summary also has a tag associated with it, which we use to organize logically related data. The EventAccumulator supports retrieving the event and summary data by their tags.
Calling
tags
returns a map from event types to the associated tags for those types, that were found in the loaded event files. Then, various functional endpoints (e.g.,scalars(tag)
) allow for the retrieval of all data associated with each tag.The
reload()
method synchronously loads all of the data written so far.Path to a directory containing TensorFlow events files, or a single TensorFlow events file. The accumulator will load events from this path.
Information on how much data the event accumulator should store in memory. The default size guidance tries not to store too much so as to avoid consuming all of the client's memory. The
sizeGuidance
should be a map from event types to integers representing the number of items to keep in memory, per tag for items of that event type. If the size is0
, then all events are stored. Images, audio, and histograms tend to be very large and thus storing all of them is not recommended.Information on how the event accumulator should compress histogram data for the CompressedHistogramEventType event type.
Boolean value indicating whether to discard any events that were "orphaned" by a TensorFlow restart.