from local
This commit is contained in:
parent
3ece75b603
commit
6c7a19ea56
Binary file not shown.
@ -209,7 +209,7 @@ class Transducer(nn.Module):
|
|||||||
encoder_out, x_lens = self.encoder(x, x_lens)
|
encoder_out, x_lens = self.encoder(x, x_lens)
|
||||||
|
|
||||||
hyps = []
|
hyps = []
|
||||||
hyp_tokens = greedy_search_batch(self, encoder_out, x_lens)#, decoder_out)
|
hyp_tokens = greedy_search_batch(self, encoder_out, x_lens)
|
||||||
|
|
||||||
for hyp in sp.decode(hyp_tokens):
|
for hyp in sp.decode(hyp_tokens):
|
||||||
hyps.append(hyp.split())
|
hyps.append(hyp.split())
|
||||||
|
|||||||
Reference in New Issue
Block a user