mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
Correct commnet
This commit is contained in:
+1
-1
@@ -13,8 +13,8 @@ class BahdanauAttention(nn.Module):
|
||||
def forward(self, annots, query):
|
||||
"""
|
||||
Shapes:
|
||||
- query: (batch, 1, dim) or (batch, dim)
|
||||
- annots: (batch, max_time, dim)
|
||||
- query: (batch, 1, dim) or (batch, dim)
|
||||
"""
|
||||
if query.dim() == 2:
|
||||
# insert time-axis for broadcasting
|
||||
|
||||
Reference in New Issue
Block a user