From 004ae1e542a6417f496ec6db2e0d7ce9218fc61d Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期六, 22 四月 2023 20:06:50 +0800
Subject: [PATCH] Merge pull request #402 from zhuzizyf/dev_knf
---
funasr/runtime/onnxruntime/src/commonfunc.h | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/funasr/runtime/onnxruntime/src/commonfunc.h b/funasr/runtime/onnxruntime/src/commonfunc.h
index 237df86..8d1a97c 100644
--- a/funasr/runtime/onnxruntime/src/commonfunc.h
+++ b/funasr/runtime/onnxruntime/src/commonfunc.h
@@ -1,17 +1,14 @@
#pragma once
-
typedef struct
{
std::string msg;
-
-}RPASR_RECOG_RESULT;
+ float snippet_time;
+}FUNASR_RECOG_RESULT;
#ifdef _WIN32
#include <codecvt>
-
-
inline std::wstring string2wstring(const std::string& str, const std::string& locale)
{
@@ -28,8 +25,6 @@
}
#endif
-
-
inline void getInputName(Ort::Session* session, string& inputName,int nIndex=0) {
size_t numInputNodes = session->GetInputCount();
@@ -53,4 +48,4 @@
}
}
-}
\ No newline at end of file
+}
--
Gitblit v1.9.1