mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
Fix self.post-scale-mha
This commit is contained in:
parent
76a2b9d362
commit
0abba9e7a2
@ -231,7 +231,7 @@ class ConformerEncoderLayer(nn.Module):
|
||||
attn_mask=src_mask,
|
||||
key_padding_mask=src_key_padding_mask,
|
||||
)[0]
|
||||
src = residual + post_scale_mha(self.dropout(src_att))
|
||||
src = residual + self.post_scale_mha(self.dropout(src_att))
|
||||
|
||||
# convolution module
|
||||
src = src + self.dropout(self.conv_module(self.scale_conv(src)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user