This commit is contained in:
Eren Golge 2019-04-30 10:59:29 +02:00
Родитель 8f6721a1ff
Коммит afb5a17221
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -251,6 +251,7 @@ class Attention(nn.Module):
else:
context = torch.bmm(alignment.unsqueeze(1), inputs)
context = context.squeeze(1)
self.attention_weights = alignment
return context