Class/Object

org.platanios.tensorflow.api.io.events

SummaryFileWriter

Related Docs: object SummaryFileWriter | package events

Permalink

class SummaryFileWriter extends EventFileWriter

Writes Summary protocol buffers to event files for use with TensorBoard.

The SummaryFileWriter 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.

On construction the summary writer creates a new event file in workingDir. This event file will contain Event protocol buffers constructed when you call one of the following functions: writeGraph(), writeSummary(), writeSessionLog(), or writeRunMetadata().

If you pass a Graph to the constructor it is write to the event file, which is equivalent to calling writeGraph() later on.

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

// Create a graph.
val graph = Graph()
...
// Launch the graph in a session.
val session = Session(graph)
// Create a summary file writer and add the graph to the event file.
val writer = SummaryWriter(workingDir, session.graph)
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SummaryFileWriter
  2. EventFileWriter
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def close(): Unit

    Permalink

    Calls flush() and then closes the current event file.

    Calls flush() and then closes the current event file.

    Definition Classes
    EventFileWriter
  7. def closed: Boolean

    Permalink

    Returns true if this event file writer has been closed.

    Returns true if this event file writer has been closed.

    Definition Classes
    EventFileWriter
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. val filenameSuffix: String

    Permalink

    Filename suffix to use for the event file.

    Filename suffix to use for the event file.

    Definition Classes
    SummaryFileWriterEventFileWriter
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def flush(): Unit

    Permalink

    Pushes outstanding events to disk.

    Pushes outstanding events to disk.

    Definition Classes
    EventFileWriter
  13. val flushFrequency: Int

    Permalink

    Specifies how often to flush the written events to disk (in seconds).

    Specifies how often to flush the written events to disk (in seconds).

    Definition Classes
    SummaryFileWriterEventFileWriter
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. val queueCapacity: Int

    Permalink

    Maximum number of events pending to be written to disk before a call to write() blocks.

    Maximum number of events pending to be written to disk before a call to write() blocks.

    Definition Classes
    SummaryFileWriterEventFileWriter
  21. def reopen(): Unit

    Permalink

    Reopens this event file writer.

    Reopens this event file writer.

    Definition Classes
    EventFileWriter
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. val workingDir: Path

    Permalink

    Directory in which to write the event file.

    Directory in which to write the event file.

    Definition Classes
    SummaryFileWriterEventFileWriter
  28. def write(event: Event): Unit

    Permalink

    Writes the provided event to the event file.

    Writes the provided event to the event file.

    Definition Classes
    EventFileWriter
  29. def writeGraph(graph: core.Graph, step: Long = 0L): Unit

    Permalink

    Writes a Graph to the event file along with its meta-information.

    Writes a Graph to the event file along with its meta-information.

    This method wraps the provided graph in an Event protocol buffer and writes it to the event file. The provided graph will be displayed by TensorBoard. Most users pass a graph in the constructor instead.

    graph

    Graph to write.

    step

    Global step number to record with the graph.

  30. def writeGraphDef(graphDef: GraphDef, step: Long = 0L): Unit

    Permalink

    Writes a GraphDef to the event file.

    Writes a GraphDef to the event file.

    This method wraps the provided GraphDef in an Event protocol buffer and writes it to the event file.

    graphDef

    GraphDef to write.

    step

    Global step number to record with the GraphDef.

  31. def writeMetaGraphDef(metaGraphDef: MetaGraphDef, step: Long = 0L): Unit

    Permalink

    Writes a MetaGraphDef to the event file.

    Writes a MetaGraphDef to the event file.

    This method wraps the provided MetaGraphDef in an Event protocol buffer and writes it to the event file.

    metaGraphDef

    MetaGraphDef to write.

    step

    Global step number to record with the MetaGraphDef.

  32. def writeRunMetadata(runMetadata: RunMetadata, tag: String, step: Long): Unit

    Permalink

    Writes run metadata information for a single Session.run() call to the event file.

    Writes run metadata information for a single Session.run() call to the event file.

    runMetadata

    Run metadata to write.

    tag

    Tag name for these metadata.

    step

    Global step number to record with the summary.

    Annotations
    @throws( ... )
    Exceptions thrown

    IllegalArgumentException If the provided tag has already been used for this event type.

  33. def writeSessionLog(sessionLog: SessionLog, step: Long): Unit

    Permalink

    Writes a SessionLog to the event file.

    Writes a SessionLog to the event file.

    This method wraps the provided session log in an Event protocol buffer and writes it to the event file.

    sessionLog

    Session log to write.

    step

    Global step number to record with the session log.

  34. def writeSummary(summary: Summary, step: Long): Unit

    Permalink

    Writes a Summary protocol buffer to the event file.

    Writes a Summary protocol buffer to the event file.

    This method wraps the provided summary in an Event protocol buffer and writes it to the event file.

    summary

    Summary to write.

    step

    Global step number to record with the summary.

  35. def writeSummaryString(summary: String, step: Long): Unit

    Permalink

    Writes a Summary protocol buffer to the event file given a string representation of that protocol buffer.

    Writes a Summary protocol buffer to the event file given a string representation of that protocol buffer.

    This method wraps the provided summary in an Event protocol buffer and writes it to the event file.

    You can pass the result of evaluating any summary op (e.g., using Session.run()) to this function.

    summary

    String representation of the summary to write.

    step

    Global step number to record with the summary.

Inherited from EventFileWriter

Inherited from AnyRef

Inherited from Any

Ungrouped