Trait

org.platanios.tensorflow.api.learn.hooks

SummaryWriterHookAddOn

Related Doc: package hooks

Permalink

trait SummaryWriterHookAddOn extends Hook

Add-on trait for hooks that provides convenience methods for using a summary writer.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SummaryWriterHookAddOn
  2. Hook
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val summaryDir: Path

    Permalink

Concrete 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. def afterSessionCreation(session: core.client.Session): Unit

    Permalink

    Called after a new session is created.

    Called after a new session is created. This is called to signal the hooks that a new session has been created. This callback has two essential differences with the situation in which begin() is called:

    • When this is called, the graph is finalized and ops can no longer be added to it.
    • This method will also be called as a result of recovering a wrapped session (i.e., not only at the beginning of the overall session).
    session

    The session that has been created.

    Attributes
    protected
    Definition Classes
    Hook
  5. def afterSessionRun[F, E, R](runContext: SessionRunContext[F, E, R], runResult: SessionRunResult[Seq[ops.Output], Seq[tensors.Tensor[types.DataType]]])(implicit executableEv: Executable[E], fetchableEv: Aux[F, R]): Unit

    Permalink

    Called after each call to Session.run().

    Called after each call to Session.run().

    The runContext argument is the same one passed to beforeSessionRun(). runContext.requestStop() can be called to stop the iteration.

    The runResult argument contains fetched values for the tensors requested by beforeSessionRun().

    If Session.run() throws any exception, then afterSessionRun() will not be called. Note the difference between the end() and the afterSessionRun() behavior when Session.run() throws an OutOfRangeException. In that case, end() is called but afterSessionRun() is not called.

    runContext

    Provides information about the run call (i.e., the originally requested ops/tensors, the session, etc.). Same value as that passed to beforeSessionRun.

    runResult

    Result of the Session.run() call that includes the fetched values for the tensors requested by beforeSessionRun().

    Attributes
    protected
    Definition Classes
    Hook
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def beforeSessionRun[F, E, R](runContext: SessionRunContext[F, E, R])(implicit executableEv: Executable[E], fetchableEv: Aux[F, R]): Option[SessionRunArgs[Seq[ops.Output], Traversable[ops.Op], Seq[tensors.Tensor[types.DataType]]]]

    Permalink

    Called before each call to Session.run().

    Called before each call to Session.run(). You can return from this call a Hook.SessionRunArgs object indicating ops or tensors to add to the upcoming run call. These ops/tensors will be run together with the ops/tensors originally passed to the original run call. The run arguments you return can also contain feeds to be added to the run call.

    The runContext argument is a Hook.SessionRunContext that provides information about the upcoming run call (i.e., the originally requested ops/tensors, the session, etc.).

    At this point the graph is finalized and you should not add any new ops.

    runContext

    Provides information about the upcoming run call (i.e., the originally requested ops/tensors, the session, etc.).

    Attributes
    protected
    Definition Classes
    Hook
  8. def begin(): Unit

    Permalink

    Called once before creating the session.

    Called once before creating the session. When called, the default graph is the one that will be launched in the session. The hook can modify the graph by adding new operations to it. After the begin call the graph will be finalized and the other callbacks will not be able to modify the graph anymore. A second begin call on the same graph, should not change that graph.

    Attributes
    protected
    Definition Classes
    Hook
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def end(session: core.client.Session): Unit

    Permalink

    Called at the end of the session usage (i.e., Session.run() will not be invoked again after this call).

    Called at the end of the session usage (i.e., Session.run() will not be invoked again after this call).

    The session argument can be used in case the hook wants to execute any final ops, such as saving a last checkpoint.

    If Session.run() throws any exception other than OutOfRangeException then end() will not be called. Note the difference between the end() and the afterSessionRun() behavior when Session.run() throws an OutOfRangeException. In that case, end() is called but afterSessionRun() is not called.

    session

    Session that will not be used again after this call.

    Attributes
    protected
    Definition Classes
    Hook
  11. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  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. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def writeSummary(step: Long, tag: String, value: Audio): Unit

    Permalink
    Attributes
    protected
  26. def writeSummary(step: Long, tag: String, value: Image): Unit

    Permalink
    Attributes
    protected
  27. def writeSummary(step: Long, tag: String, value: HistogramProto): Unit

    Permalink
    Attributes
    protected
  28. def writeSummary(step: Long, tag: String, value: Float): Unit

    Permalink
    Attributes
    protected
  29. def writeSummary(step: Long, tag: String, value: tensors.Tensor[_ <: types.DataType]): Unit

    Permalink
    Attributes
    protected

Inherited from Hook

Inherited from AnyRef

Inherited from Any

Ungrouped