Object/Class

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

BeamSearchDecoder

Related Docs: class BeamSearchDecoder | package decoders

Permalink

object BeamSearchDecoder

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

Type Members

  1. case class FinalOutput(predictedIDs: ops.Output, output: Output) extends Product with Serializable

    Permalink

    Final outputs returned by the beam search after all decoding is finished.

    Final outputs returned by the beam search after all decoding is finished.

    predictedIDs

    Tensor of shape [batchSize, T, beamWidth] (or [T, batchSize, beamWidth], if outputTimeMajor == true) containing the final prediction IDs. The search states are ordered from best to worst.

    output

    State of the beam search at the end of decoding.

  2. case class Output(scores: ops.Output, predictedIDs: ops.Output, parentIDs: ops.Output) extends Product with Serializable

    Permalink
  3. case class State[S, SS](rnnState: S, logProbabilities: ops.Output, sequenceLengths: ops.Output, finished: ops.Output)(implicit evS: Aux[S, SS]) extends Product with Serializable

    Permalink

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 FinalOutput extends Serializable

    Permalink
  5. object Output extends Serializable

    Permalink
  6. object State extends Serializable

    Permalink
  7. def apply[S, SS](cell: RNNCell[ops.Output, core.Shape, S, SS], initialCellState: S, embeddingFn: (ops.Output) ⇒ ops.Output, beginTokens: ops.Output, endToken: ops.Output, beamWidth: Int, lengthPenalty: LengthPenalty = NoPenalty, outputLayer: (ops.Output) ⇒ ops.Output = (o: ops.Output) => o, reorderTensorArrays: Boolean = true, name: String = "BeamSearchRNNDecoder")(implicit evOutput: Aux[ops.Output, core.Shape], evS: Aux[S, SS]): BeamSearchDecoder[S, SS]

    Permalink
  8. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  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. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. val logger: Logger

    Permalink
    Attributes
    protected
  17. def maybeSplitBatchBeams(value: OutputConvertible, shape: core.Shape, batchSize: ops.Output, beamWidth: Int): OutputConvertible

    Permalink

    Maybe converts the provided tensor structure from batches by beams into batches of beams, by merging them accordingly.

    Maybe converts the provided tensor structure from batches by beams into batches of beams, by merging them accordingly.

    More precisely, value consists of tensors with shape [batchSize * beamWidth] ++ ... and this method reshapes them into tensors with shape [batchSize, beamWidth] ++ ....

    value

    Value to reshape.

    shape

    Depth shape of the value.

    returns

    Reshaped state.

    Annotations
    @throws( ... )
    Exceptions thrown

    InvalidArgumentException If value is of an unsupported type, or if it contains any tensors of unknown rank, or if, after reshaping, the new tensor is not shaped [batchSize, beamWidth] ++ ... (assuming that both batchSize and beamWidth are known statically).

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def tileForBeamSearch[S](value: S, beamWidth: Int)(implicit evS: WhileLoopVariable[S]): S

    Permalink
    Annotations
    @throws( ... )
  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( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped