mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
bug fix
This commit is contained in:
parent
b7b4a83c18
commit
530125dca8
@ -167,8 +167,8 @@ class SenseVoiceSmall:
|
||||
ctc_logits, encoder_out_lens = self.ort_infer(
|
||||
torch.Tensor(feats).to(self.device),
|
||||
torch.Tensor(feats_len).to(self.device),
|
||||
torch.tensor([_language_list]).to(self.device),
|
||||
torch.tensor([_textnorm_list]).to(self.device),
|
||||
torch.tensor(_language_list).to(self.device),
|
||||
torch.tensor(_textnorm_list).to(self.device),
|
||||
)
|
||||
# support batch_size=1 only currently
|
||||
x = ctc_logits[0, : encoder_out_lens[0].item(), :]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user