mirror of
https://github.com/wassname/TTS.git
synced 2026-10-27 12:30:27 +08:00
Configurable alignment method
This commit is contained in:
1 parent
d8c460442a
commit
0f933106ca
1 file changed
+1
-1
+1
-1
@@ -105,7 +105,7 @@ class AttentionRNN(nn.Module):
|
||||
# Alignment
|
||||
# (batch, max_time)
|
||||
# e_{ij} = a(s_{i-1}, h_j)
|
||||
if attnetion_vec is None:
|
||||
if self.align_model is 'b':
|
||||
alignment = self.alignment_model(annotations, rnn_output)
|
||||
else:
|
||||
alignment = self.alignment_model(annotations, rnn_output, attention_vec)
|
||||
|
||||
Reference in new issue
Block a user