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
3b48f52b71
commit
b034ee2f7e
Binary file not shown.
Binary file not shown.
@ -582,7 +582,7 @@ def compute_loss(
|
||||
use_double_scores=params.use_double_scores,
|
||||
)
|
||||
|
||||
elif parmas.interctc and params.condition:
|
||||
elif params.interctc and params.condition:
|
||||
dense_fsa_vec = k2.DenseFsaVec(
|
||||
nnet_output[0],
|
||||
supervision_segments,
|
||||
|
||||
@ -189,7 +189,6 @@ class Transformer(nn.Module):
|
||||
if type(encoder_memory) == tuple:
|
||||
(encoder_memory, layer_outputs) = encoder_memory
|
||||
layer_outputs = [self.ctc_output(x) for x in layer_outputs]
|
||||
|
||||
return (x, layer_outputs), encoder_memory, memory_key_padding_mask
|
||||
else:
|
||||
x = self.ctc_output(encoder_memory)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user