mirror of
https://github.com/wassname/TTS.git
synced 2026-10-30 13:00:27 +08:00
Add a missing class variable to attention class
This commit is contained in:
1 parent
8ffc85008a
commit
fe99baec5a
1 file changed
+1
@@ -80,6 +80,7 @@ class AttentionRNN(nn.Module):
|
||||
align_model (str): 'b' for Bahdanau, 'ls' Location Sensitive alignment.
|
||||
"""
|
||||
super(AttentionRNN, self).__init__()
|
||||
self.align_model = align_model
|
||||
self.rnn_cell = nn.GRUCell(out_dim + memory_dim, out_dim)
|
||||
# pick bahdanau or location sensitive attention
|
||||
if align_model == 'b':
|
||||
|
||||
Reference in new issue
Block a user