Skip to content

dot_product_attention

allennlp.modules.attention.dot_product_attention

[SOURCE]


DotProductAttention#

@Attention.register("dot_product")
class DotProductAttention(Attention)

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

Registered as an Attention with name "dot_product".