org
.
platanios
.
tensorflow
.
api
.
ops
.
rnn
.
attention
SimpleAttention
Related Doc:
package attention
abstract
class
SimpleAttention
extends
Attention
[
Output
,
core.Shape
]
Linear Supertypes
Attention
[
Output
,
core.Shape
],
AnyRef
,
Any
Known Subclasses
BahdanauAttention
,
LuongAttention
Ordering
Alphabetic
By Inheritance
Inherited
SimpleAttention
Attention
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
SimpleAttention
(
memory:
Output
,
memorySequenceLengths:
Output
=
null
,
checkInnerDimensionsDefined:
Boolean
=
true
,
scoreMaskValue:
Output
=
Float.NegativeInfinity
,
name:
String
=
"SimpleAttention"
)
Abstract Value Members
abstract
def
score
(
query:
Output
,
state:
Output
)
:
Output
Attributes
protected
Definition Classes
Attention
Concrete 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
,
previousState:
Output
)
: (
Output
,
Output
)
Definition Classes
SimpleAttention
→
Attention
lazy val
alignmentSize
:
Output
Definition Classes
Attention
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
lazy val
batchSize
:
Output
Definition Classes
Attention
val
checkInnerDimensionsDefined
:
Boolean
Definition Classes
SimpleAttention
→
Attention
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
lazy val
dataType
:
types.DataType
Definition Classes
Attention
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
lazy val
initialAlignment
:
Output
Definition Classes
Attention
def
initialState
:
Output
Definition Classes
SimpleAttention
→
Attention
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
lazy val
keys
:
Output
Definition Classes
Attention
val
memory
:
Output
Attributes
protected
Definition Classes
SimpleAttention
→
Attention
val
memorySequenceLengths
:
Output
Attributes
protected
Definition Classes
SimpleAttention
→
Attention
val
name
:
String
Definition Classes
SimpleAttention
→
Attention
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
probability
(
score:
Output
,
state:
Output
)
:
Output
Attributes
protected
Definition Classes
Attention
val
scoreMaskValue
:
Output
Definition Classes
SimpleAttention
→
Attention
def
stateSize
:
core.Shape
Definition Classes
SimpleAttention
→
Attention
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
lazy val
values
:
Output
Definition Classes
Attention
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
Inherited from
Attention
[
Output
,
core.Shape
]
Inherited from
AnyRef
Inherited from
Any
Ungrouped