Skip to content

Commit

Permalink
Update attentions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sooftware authored Mar 4, 2022
1 parent c19f54d commit b1dd65b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion attentions.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class DotProductAttention(nn.Module):
"""
def __init__(self, hidden_dim):
super(DotProductAttention, self).__init__()
self.normalize = nn.LayerNorm(hidden_dim)

def forward(self, query: Tensor, value: Tensor) -> Tuple[Tensor, Tensor]:
batch_size, hidden_dim, input_size = query.size(0), query.size(2), value.size(1)
Expand Down

0 comments on commit b1dd65b

Please sign in to comment.