From 63a70a00f7c9f162e8d7b3e330516438fb8cd87b Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期五, 19 四月 2024 16:08:05 +0800
Subject: [PATCH] add dynamic batch for fetch
---
runtime/onnxruntime/src/paraformer-torch.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/runtime/onnxruntime/src/paraformer-torch.cpp b/runtime/onnxruntime/src/paraformer-torch.cpp
index 9ac0cf7..113d43f 100644
--- a/runtime/onnxruntime/src/paraformer-torch.cpp
+++ b/runtime/onnxruntime/src/paraformer-torch.cpp
@@ -373,6 +373,9 @@
}
}
results.push_back(result);
+ if (wfst_decoder){
+ wfst_decoder->StartUtterance();
+ }
}
}
catch (std::exception const &e)
--
Gitblit v1.9.1