Nabu-asr
|
normal Bahdanau Style attention More...
Public Member Functions | |
def | __call__ (self, query, state) |
Score the query based on the keys and values. More... | |
normal Bahdanau Style attention
def nabu.neuralnetworks.components.attention.BahdanauAttention.__call__ | ( | self, | |
query, | |||
state | |||
) |
Score the query based on the keys and values.
query | Tensor of dtype matching self.values and shape [batch_size, query_depth] . |
state | Tensor of dtype matching self.values and shape [batch_size, alignments_size] (alignments_size is memory's max_time ). |
self.values
and shape [batch_size, alignments_size]
(alignments_size
is memory's max_time
).