mirror of
https://github.com/wassname/TTS.git
synced 2026-09-24 13:10:16 +08:00
Attention convolution padding correction for TF "SAME"
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ class LocationSensitiveAttention(nn.Module):
|
||||
super(LocationSensitiveAttention, self).__init__()
|
||||
self.kernel_size = kernel_size
|
||||
self.filters = filters
|
||||
padding = int((kernel_size - 1) / 2)
|
||||
padding = [(kernel_size - 1) // 2, (kernel_size - 1) // 2]
|
||||
self.loc_conv = nn.Conv1d(
|
||||
2,
|
||||
filters,
|
||||
|
||||
Reference in New Issue
Block a user