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
1994866c0a
commit
dc641991a5
Binary file not shown.
@ -243,7 +243,11 @@ class Interformer(nn.Module):
|
||||
x: torch.Tensor,
|
||||
x_lens: torch.Tensor,
|
||||
):
|
||||
encoder_out, x_lens = self.pt_encoder(x, x_lens, warmup=warmup)
|
||||
encoder_out, x_lens, layer_outputs = self.pt_encoder(x,
|
||||
x_lens,
|
||||
warmup=warmup,
|
||||
get_layer_output=True
|
||||
)
|
||||
assert torch.all(x_lens > 0)
|
||||
|
||||
# Now for the decoder, i.e., the prediction network
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user