Packages

class LuongAttention[T] extends SimpleAttention[T]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LuongAttention
  2. SimpleAttention
  3. Attention
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new LuongAttention(memorySize: Output[Int], memoryWeights: Output[T], probabilityFn: (Output[T]) => Output[T], scaleFactor: Output[T] = null, scoreMaskValue: Output[Float] = Float.MinValue, name: String = "LuongAttention")(implicit arg0: core.types.TF[T], arg1: core.types.IsDecimal[T])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def alignment(query: Output[T], previousState: State[T, Output[T]]): (Output[T], State[T, Output[T]])
    Definition Classes
    SimpleAttentionAttention
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def initialAlignment(batchSize: Output[Int]): Output[T]
    Definition Classes
    Attention
  12. def initialState(batchSize: Output[Int], memory: Memory[T]): State[T, Output[T]]
    Definition Classes
    SimpleAttentionAttention
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def keys(memory: Memory[T], values: Output[T]): Output[T]
    Attributes
    protected
    Definition Classes
    LuongAttentionSimpleAttention
  15. def keysShape(valuesShape: core.Shape): core.Shape
    Definition Classes
    LuongAttentionAttention
  16. val memorySize: Output[Int]
    Definition Classes
    LuongAttentionSimpleAttentionAttention
  17. val memoryWeights: Output[T]
  18. val name: String
    Definition Classes
    LuongAttentionSimpleAttentionAttention
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def probability(score: Output[T], state: State[T, Output[T]]): Output[T]
    Attributes
    protected
    Definition Classes
    LuongAttentionSimpleAttention
  23. val probabilityFn: (Output[T]) => Output[T]
  24. val scaleFactor: Output[T]
  25. def score(query: Output[T], state: State[T, Output[T]]): Output[T]
    Attributes
    protected
    Definition Classes
    LuongAttentionSimpleAttention
    Annotations
    @throws(scala.this.throws.<init>$default$1[org.platanios.tensorflow.api.core.exception.InvalidArgumentException])
  26. val scoreMaskValue: Output[Float]
    Definition Classes
    LuongAttentionSimpleAttention
  27. def stateShape: core.Shape
    Definition Classes
    SimpleAttentionAttention
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. def values(memory: Memory[T]): Output[T]
    Attributes
    protected
    Definition Classes
    SimpleAttention
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from SimpleAttention[T]

Inherited from Attention[T, Output[T], core.Shape]

Inherited from AnyRef

Inherited from Any

Ungrouped