class LuongAttention[T] extends SimpleAttention[T]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LuongAttention
- SimpleAttention
- Attention
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def alignment(query: Output[T], previousState: State[T, Output[T]]): (Output[T], State[T, Output[T]])
- Definition Classes
- SimpleAttention → Attention
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def initialAlignment(batchSize: Output[Int]): Output[T]
- Definition Classes
- Attention
- def initialState(batchSize: Output[Int], memory: Memory[T]): State[T, Output[T]]
- Definition Classes
- SimpleAttention → Attention
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def keys(memory: Memory[T], values: Output[T]): Output[T]
- Attributes
- protected
- Definition Classes
- LuongAttention → SimpleAttention
- def keysShape(valuesShape: core.Shape): core.Shape
- Definition Classes
- LuongAttention → Attention
- val memorySize: Output[Int]
- Definition Classes
- LuongAttention → SimpleAttention → Attention
- val memoryWeights: Output[T]
- val name: String
- Definition Classes
- LuongAttention → SimpleAttention → Attention
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def probability(score: Output[T], state: State[T, Output[T]]): Output[T]
- Attributes
- protected
- Definition Classes
- LuongAttention → SimpleAttention
- val probabilityFn: (Output[T]) => Output[T]
- val scaleFactor: Output[T]
- def score(query: Output[T], state: State[T, Output[T]]): Output[T]
- Attributes
- protected
- Definition Classes
- LuongAttention → SimpleAttention
- Annotations
- @throws(scala.this.throws.<init>$default$1[org.platanios.tensorflow.api.core.exception.InvalidArgumentException])
- val scoreMaskValue: Output[Float]
- Definition Classes
- LuongAttention → SimpleAttention
- def stateShape: core.Shape
- Definition Classes
- SimpleAttention → Attention
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def values(memory: Memory[T]): Output[T]
- Attributes
- protected
- Definition Classes
- SimpleAttention
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])