From 72b6c7735e44fff12c4a3d401deb98c59f16ab0f Mon Sep 17 00:00:00 2001
From: hnluo <haoneng.lhn@alibaba-inc.com>
Date: 星期二, 29 八月 2023 11:40:46 +0800
Subject: [PATCH] fix onnx export bug

---
 funasr/runtime/onnxruntime/src/commonfunc.h |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/funasr/runtime/onnxruntime/src/commonfunc.h b/funasr/runtime/onnxruntime/src/commonfunc.h
index 8734d6d..d7e5f13 100644
--- a/funasr/runtime/onnxruntime/src/commonfunc.h
+++ b/funasr/runtime/onnxruntime/src/commonfunc.h
@@ -4,20 +4,21 @@
 namespace funasr {
 typedef struct
 {
-    std::string msg;
-    std::string tpass_msg;
-    float snippet_time;
+    std::string msg="";
+    std::string stamp="";
+    std::string tpass_msg="";
+    float snippet_time=0;
 }FUNASR_RECOG_RESULT;
 
 typedef struct
 {
     std::vector<std::vector<int>>* segments;
-    float  snippet_time;
+    float  snippet_time=0;
 }FUNASR_VAD_RESULT;
 
 typedef struct
 {
-    string msg;
+    string msg="";
     vector<string> arr_cache;
 }FUNASR_PUNC_RESULT;
 

--
Gitblit v1.9.1