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
f9f41119e3
commit
152efda5fc
Binary file not shown.
@ -694,7 +694,17 @@ class ConformerEncoder(nn.Module):
|
|||||||
|
|
||||||
outputs = []
|
outputs = []
|
||||||
residual = None
|
residual = None
|
||||||
|
|
||||||
|
for i, mod in enumerate(self.layers):
|
||||||
|
output = mod(
|
||||||
|
output,
|
||||||
|
pos_emb,
|
||||||
|
src_mask=mask,
|
||||||
|
src_key_padding_mask=src_key_padding_mask,
|
||||||
|
warmup=warmup,
|
||||||
|
)
|
||||||
|
|
||||||
|
'''
|
||||||
for i, mod in enumerate(self.layers):
|
for i, mod in enumerate(self.layers):
|
||||||
if i == 0:
|
if i == 0:
|
||||||
residual = output
|
residual = output
|
||||||
@ -716,6 +726,7 @@ class ConformerEncoder(nn.Module):
|
|||||||
src_key_padding_mask=src_key_padding_mask,
|
src_key_padding_mask=src_key_padding_mask,
|
||||||
warmup=warmup,
|
warmup=warmup,
|
||||||
)
|
)
|
||||||
|
'''
|
||||||
#if i in self.aux_layers:
|
#if i in self.aux_layers:
|
||||||
# outputs.append(output)
|
# outputs.append(output)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user