from local

This commit is contained in:
dohe0342 2023-01-08 18:49:22 +09:00
parent 358667cddc
commit d58f447c6a
2 changed files with 4 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class Conformer(EncoderInterface):
num_left_chunks=self.num_left_chunks,
device=x.device,
)
x = self.encoder(
x, layer_outputs = self.encoder(
x,
pos_emb,
mask=mask,
@ -200,6 +200,9 @@ class Conformer(EncoderInterface):
) # (T, N, 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
@torch.jit.export