from local

This commit is contained in:
dohe0342 2023-01-09 19:28:37 +09:00
parent cdd062a4fe
commit dc477d9711
2 changed files with 4 additions and 1 deletions

View File

@ -198,6 +198,9 @@ class Conformer(EncoderInterface):
x = x.permute(1, 0, 2) # (T, N, C) ->(N, T, C)
layer_outputs = [x.permute(1, 0, 2) for x in layer_outputs]
if get_layer_output:
return x, lengths, layer_outputs
else:
return x, lengths
@torch.jit.export