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
cdd062a4fe
commit
dc477d9711
Binary file not shown.
@ -198,7 +198,10 @@ 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_outputs = [x.permute(1, 0, 2) for x in layer_outputs]
|
layer_outputs = [x.permute(1, 0, 2) for x in layer_outputs]
|
||||||
|
|
||||||
return x, lengths
|
if get_layer_output:
|
||||||
|
return x, lengths, layer_outputs
|
||||||
|
else:
|
||||||
|
return x, lengths
|
||||||
|
|
||||||
@torch.jit.export
|
@torch.jit.export
|
||||||
def get_init_state(
|
def get_init_state(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user