Skip to content

dot_product_attention

[ allennlp.modules.attention.dot_product_attention ]


DotProductAttention Objects#

class DotProductAttention(Attention)

Computes attention between a vector and a matrix using dot product.

Registered as an Attention with name "dot_product".