mirror of
https://github.com/wassname/TTS.git
synced 2026-09-10 11:50:20 +08:00
Do not avg cummulative attention weight
This commit is contained in:
+1
-1
@@ -286,7 +286,7 @@ class Decoder(nn.Module):
|
||||
processed_memory = self.prenet(memory_input)
|
||||
# Attention RNN
|
||||
attention_cat = torch.cat((attention.unsqueeze(1),
|
||||
attention_cum.unsqueeze(1) / (t + 1)),
|
||||
attention_cum.unsqueeze(1)),
|
||||
dim=1)
|
||||
attention_rnn_hidden, current_context_vec, attention = self.attention_rnn(
|
||||
processed_memory, current_context_vec, attention_rnn_hidden, inputs, attention_cat)
|
||||
|
||||
Reference in New Issue
Block a user