from local

This commit is contained in:
dohe0342 2023-01-04 00:11:22 +09:00
parent 3fa5cf942c
commit 9c7d1256f8
2 changed files with 0 additions and 6 deletions

View File

@ -197,8 +197,6 @@ class Conformer(EncoderInterface):
x = x.permute(1, 0, 2) # (T, N, C) ->(N, T, C) 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 return x, lengths
@torch.jit.export @torch.jit.export
@ -695,8 +693,6 @@ class ConformerEncoder(nn.Module):
outputs = [] outputs = []
layer_output = []
for i, mod in enumerate(self.layers): for i, mod in enumerate(self.layers):
output = mod( output = mod(
output, output,
@ -708,8 +704,6 @@ class ConformerEncoder(nn.Module):
if i in self.aux_layers: if i in self.aux_layers:
outputs.append(output) outputs.append(output)
layer_output.append(output)
output = self.combiner(outputs) output = self.combiner(outputs)
return output, layer_output return output, layer_output