Nabu-asr
|
contain attention mechanisms More...
Classes | |
class | nabu.neuralnetworks.components.attention.BahdanauAttention |
normal Bahdanau Style attention More... | |
class | nabu.neuralnetworks.components.attention.LocationAwareAttention |
attention mechanism that is location aware More... | |
class | nabu.neuralnetworks.components.attention.WindowedAttention |
attention mechanism that is location aware More... | |
Functions | |
def | nabu.neuralnetworks.components.attention.factory (conf, num_units, encoded, encoded_seq_length) |
create the attention mechanism | |
def | nabu.neuralnetworks.components.attention.normalized_sigmoid (x, axis=-1) |
the normalized sigmoid probability function More... | |
contain attention mechanisms
def nabu.neuralnetworks.components.attention.normalized_sigmoid | ( | x, | |
axis = -1 |
|||
) |
the normalized sigmoid probability function
x | the input tensor |
axis | the axis to normalize |