Class

org.platanios.tensorflow.api.ops.seq2seq.decoders

Decoder

Related Doc: package decoders

Permalink

abstract class Decoder[O, OS, S, SS, DO, DOS, DS, DSS, DFO, DFS] extends AnyRef

Recurrent Neural Network (RNN) decoder abstract interface.

Concepts used by this interface:

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

Instance Constructors

  1. new Decoder(cell: RNNCell[O, OS, S, SS], name: String = "RNNDecoder")(implicit evO: Aux[O, OS], evDO: Aux[DO, DOS], evDS: Aux[DS, DSS], evDFO: WhileLoopVariable[DFO])

    Permalink

    cell

    RNN cell to use for decoding.

    name

    Name prefix used for all created ops.

Abstract Value Members

  1. abstract val batchSize: Output

    Permalink

    Scalar INT32 tensor representing the batch size of the input values.

  2. abstract def finalize(output: DO, state: DS, sequenceLengths: Output): (DFO, DFS, Output)

    Permalink

    Finalizes the output of the decoding process.

    Finalizes the output of the decoding process.

    output

    Final output after decoding.

    state

    Final state after decoding.

    sequenceLengths

    Tensor containing the sequence lengths that the decoder cell outputs.

    returns

    Finalized output and state to return from the decoding process.

  3. abstract def initialize(): (Output, O, DS)

    Permalink

    This method is called before any decoding iterations.

    This method is called before any decoding iterations. It computes the initial input values and the initial state.

    returns

    Tuple containing: (i) a scalar BOOLEAN tensor specifying whether initialization has finished, (ii) the next input, and (iii) the initial decoder state.

  4. abstract def next(time: Output, input: O, state: DS): (DO, DS, O, Output)

    Permalink

    This method is called once per step of decoding (but only once for dynamic decoding).

    This method is called once per step of decoding (but only once for dynamic decoding).

    returns

    Tuple containing: (i) the decoder output for this step, (ii) the next decoder state, (iii) the next input, and (iv) a scalar BOOLEAN tensor specifying whether decoding has finished.

  5. abstract def zeroOutput(): DO

    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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val cell: RNNCell[O, OS, S, SS]

    Permalink

    RNN cell to use for decoding.

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def decode(outputTimeMajor: Boolean = false, imputeFinished: Boolean = false, maximumIterations: Output = null, parallelIterations: Int = 32, swapMemory: Boolean = false, name: String = s"$name/DynamicRNNDecode"): (DFO, DFS, Output)

    Permalink

    Performs dynamic decoding using this decoder.

    Performs dynamic decoding using this decoder.

    This method calls initialize() once and next() repeatedly.

  8. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  14. val name: String

    Permalink

    Name prefix used for all created ops.

  15. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. val tracksOwnFinished: Boolean

    Permalink

    Describes whether the decoder keeps track of finished states.

    Describes whether the decoder keeps track of finished states.

    Most decoders will emit a true/false finished value independently at each time step. In this case, the dynamicDecode() function keeps track of which batch entries have already finished, and performs a logical OR to insert new batches to the finished set.

    Some decoders, however, shuffle batches/beams between time steps and dynamicDecode() will mix up the finished state across these entries because it does not track the reshuffling across time steps. In this case, it is up to the decoder to declare that it will keep track of its own finished state by setting this property to true.

  21. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped