Class/Object

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

BasicDecoder

Related Docs: object BasicDecoder | package decoders

Permalink

class BasicDecoder[O, OS, S, SS] extends Decoder[O, OS, S, SS, decoders.BasicDecoder.Output[O, OS], (OS, OS), S, SS, decoders.BasicDecoder.Output[O, OS], S]

Basic sampling Recurrent Neural Network (RNN) decoder.

Linear Supertypes
Decoder[O, OS, S, SS, BasicDecoder.Output[O, OS], (OS, OS), S, SS, BasicDecoder.Output[O, OS], S], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BasicDecoder
  2. Decoder
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BasicDecoder(cell: RNNCell[O, OS, S, SS], initialCellState: S, helper: Helper[O, S], outputLayer: (O) ⇒ O = (o: O) => o, name: String = "BasicRNNDecoder")(implicit evO: Aux[O, OS], evS: Aux[S, SS])

    Permalink

    cell

    RNN cell to use for decoding.

    initialCellState

    Initial RNN cell state to use for starting the decoding process.

    helper

    Basic RNN decoder helper to use.

    outputLayer

    Output layer to use that is applied at the outputs of the provided RNN cell before returning them.

    name

    Name prefix used for all created ops.

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 batchSize: Output

    Permalink

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

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

    Definition Classes
    BasicDecoderDecoder
  6. val cell: RNNCell[O, OS, S, SS]

    Permalink

    RNN cell to use for decoding.

    RNN cell to use for decoding.

    Definition Classes
    BasicDecoderDecoder
  7. def clone(): AnyRef

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

    Permalink

    Performs dynamic decoding using this decoder.

    Performs dynamic decoding using this decoder.

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

    Definition Classes
    Decoder
  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(output: BasicDecoder.Output[O, OS], state: S, sequenceLengths: Output): (BasicDecoder.Output[O, OS], S, 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.

    Definition Classes
    BasicDecoderDecoder
  12. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. val helper: Helper[O, S]

    Permalink

    Basic RNN decoder helper to use.

  16. val initialCellState: S

    Permalink

    Initial RNN cell state to use for starting the decoding process.

  17. def initialize(): (Output, O, S)

    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.

    Definition Classes
    BasicDecoderDecoder
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. val name: String

    Permalink

    Name prefix used for all created ops.

    Name prefix used for all created ops.

    Definition Classes
    BasicDecoderDecoder
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def next(time: Output, input: O, state: S): (BasicDecoder.Output[O, OS], S, 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) a scalar BOOLEAN tensor specifying whether sampling has finished, and (ii) the next RNN cell tuple.

    Definition Classes
    BasicDecoderDecoder
  22. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  24. val outputLayer: (O) ⇒ O

    Permalink

    Output layer to use that is applied at the outputs of the provided RNN cell before returning them.

  25. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. 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.

    Definition Classes
    Decoder
  28. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def zeroOutput(): BasicDecoder.Output[O, OS]

    Permalink
    Definition Classes
    BasicDecoderDecoder

Inherited from Decoder[O, OS, S, SS, BasicDecoder.Output[O, OS], (OS, OS), S, SS, BasicDecoder.Output[O, OS], S]

Inherited from AnyRef

Inherited from Any

Ungrouped