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
3fa5cf942c
commit
9c7d1256f8
Binary file not shown.
@ -197,8 +197,6 @@ class Conformer(EncoderInterface):
|
||||
|
||||
x = x.permute(1, 0, 2) # (T, N, C) ->(N, T, C)
|
||||
|
||||
layer_output = [x.permute(1, 0, 2) for x in layer_output]
|
||||
|
||||
return x, lengths
|
||||
|
||||
@torch.jit.export
|
||||
@ -695,8 +693,6 @@ class ConformerEncoder(nn.Module):
|
||||
|
||||
outputs = []
|
||||
|
||||
layer_output = []
|
||||
|
||||
for i, mod in enumerate(self.layers):
|
||||
output = mod(
|
||||
output,
|
||||
@ -708,8 +704,6 @@ class ConformerEncoder(nn.Module):
|
||||
if i in self.aux_layers:
|
||||
outputs.append(output)
|
||||
|
||||
layer_output.append(output)
|
||||
|
||||
output = self.combiner(outputs)
|
||||
|
||||
return output, layer_output
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user