This commit is contained in:
游雁 2024-04-30 00:28:14 +08:00
parent f4f545b724
commit 0454015357

View File

@ -365,7 +365,7 @@ class MultiHeadedAttentionSANMDecoder(nn.Module):
self.pad_fn = nn.ConstantPad1d((left_padding, right_padding), 0.0)
self.kernel_size = kernel_size
def forward(self, inputs, mask, cache=None, mask_shfit_chunk=None):
def forward(self, inputs, mask, cache=None, mask_shfit_chunk=None, **kwargs):
"""
:param x: (#batch, time1, size).
:param mask: Mask tensor (#batch, 1, time)