Object/Class

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

BasicDecoder

Related Docs: class BasicDecoder | package decoders

Permalink

object BasicDecoder

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

Type Members

  1. case class GreedyEmbeddingHelper[S](embeddingFn: (ops.Output) ⇒ ops.Output, beginTokens: ops.Output, endToken: ops.Output, name: String = "RNNDecoderGreedyEmbeddingHelper") extends Helper[ops.Output, S] with Product with Serializable

    Permalink

    RNN decoder helper to be used while performing inference.

    RNN decoder helper to be used while performing inference. It uses the argmax over the RNN output logits and passes the result through an embedding layer to get the next input.

    embeddingFn

    Function that takes an INT32 vector of IDs and returns the corresponding embedded values that will be passed to the decoder input.

    beginTokens

    INT32 vector with length equal to the batch size, which contains the begin-of-sequence token IDs.

    endToken

    INT32 scalar containing the end-of-sequence token ID (i.e., token ID which marks the end of decoding).

  2. trait Helper[O, S] extends AnyRef

    Permalink

    Interface for implementing sampling helpers in sequence-to-sequence decoders.

  3. case class Output[O, OS](rnnOutput: O, sample: O)(implicit whileLoopEvO: Aux[O, OS]) extends Product with Serializable

    Permalink
  4. case class TrainingHelper[O, OS, S, SS](input: O, sequenceLengths: ops.Output, timeMajor: Boolean = false, name: String = "RNNDecoderTrainingHelper")(implicit evO: Aux[O, OS], evS: Aux[S, SS]) extends Helper[O, S] with Product with Serializable

    Permalink

    RNN decoder helper to be used while training.

    RNN decoder helper to be used while training. It only reads inputs and the returned sample indexes are the argmax over the RNN output logits.

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. object Output extends Serializable

    Permalink
  5. def apply[O, OS, S, SS](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]): BasicDecoder[O, OS, S, SS]

    Permalink
  6. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped