mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
add batch support for token extraction
This commit is contained in:
parent
4f96a06d13
commit
c37e04ea49
@ -2060,6 +2060,6 @@ class SenseVoiceL(nn.Module):
|
||||
ark_writer = self.writer
|
||||
if ark_writer is not None:
|
||||
for k, v, l in zip(key, tokens.detach().cpu().numpy(), out_lens):
|
||||
ark_writer(k, tokens[:l])
|
||||
ark_writer(k, v[:l])
|
||||
|
||||
return results, meta_data
|
||||
|
||||
Loading…
Reference in New Issue
Block a user