asyml / texar-pytorch

Integrating the Best of TF into PyTorch, for Machine Learning, Natural Language Processing, and Text Generation. This is part of the CASL project: http://casl-project.ai/
https://asyml.io
Apache License 2.0
744 stars 118 forks source link

Does BahdanauMonotonicAttention output attention alignments in range [0,1]? #325

Closed hadaev8 closed 3 years ago

hadaev8 commented 3 years ago

From code seems like no.

gpengzhi commented 3 years ago

Hi, I think you could take a look at _monotonic_probability_fn and monotonic_attention