зеркало из https://github.com/mozilla/TTS.git
bug fix
This commit is contained in:
Родитель
8f6721a1ff
Коммит
afb5a17221
|
@ -251,6 +251,7 @@ class Attention(nn.Module):
|
||||||
else:
|
else:
|
||||||
context = torch.bmm(alignment.unsqueeze(1), inputs)
|
context = torch.bmm(alignment.unsqueeze(1), inputs)
|
||||||
context = context.squeeze(1)
|
context = context.squeeze(1)
|
||||||
|
self.attention_weights = alignment
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче