From 2b6eb001a97d2d6ec9a9179bee3303f3e8004e3c Mon Sep 17 00:00:00 2001 From: 18922260930 Date: Wed, 4 Dec 2024 15:37:28 +0800 Subject: [PATCH] Fix crash in ASR tasks when lm is set to none in #2237 --- runtime/onnxruntime/src/funasrruntime.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/runtime/onnxruntime/src/funasrruntime.cpp b/runtime/onnxruntime/src/funasrruntime.cpp index 628641268..f2d0a73dd 100644 --- a/runtime/onnxruntime/src/funasrruntime.cpp +++ b/runtime/onnxruntime/src/funasrruntime.cpp @@ -297,10 +297,12 @@ //timestamp if(msg_vec.size() > 1){ std::vector msg_stamp = funasr::split(msg_vec[1], ','); - for(int i=0; i 0){ + for(int i=0; i