mirror of https://github.com/coqui-ai/TTS.git
bug fix
This commit is contained in:
parent
8f6721a1ff
commit
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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue