mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
0750d755eb
commit
646abcde80
Binary file not shown.
@ -403,7 +403,7 @@ class TransfEncoder(nn.TransformerEncoder):
|
||||
def __init__(self, encoder_layer, num_layers, norm=None, enable_nested_tensor=True, mask_check=True):
|
||||
super(TransfEncoder, self).__init__()
|
||||
|
||||
def forward(self, src: Tensor, mask: Optional[Tensor] = None, src_key_padding_mask: Optional[Tensor] = None):
|
||||
def forward(self, src: Tensor, mask: Optional[torch.Tensor] = None, src_key_padding_mask: Optional[torch.Tensor] = None):
|
||||
"""Pass the input through the encoder layers in turn.
|
||||
|
||||
Args:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user