From c494d8fd18c29f601829f428a327b09ac7c29aed Mon Sep 17 00:00:00 2001
From: locasxe <71017860+locasxe@users.noreply.github.com>
Date: 星期三, 25 九月 2024 23:25:18 +0800
Subject: [PATCH] fix onnxruntime memoryleak when load model (#2108)
---
runtime/onnxruntime/src/bias-lm.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/runtime/onnxruntime/src/bias-lm.cpp b/runtime/onnxruntime/src/bias-lm.cpp
index 5be87f8..a652f29 100644
--- a/runtime/onnxruntime/src/bias-lm.cpp
+++ b/runtime/onnxruntime/src/bias-lm.cpp
@@ -1,5 +1,7 @@
#include "bias-lm.h"
-
+#ifdef _WIN32
+#include "fst-types.cc"
+#endif
namespace funasr {
void print(std::queue<StateId> &q) {
std::queue<StateId> data = q;
--
Gitblit v1.9.1