From 3549c0106e5a35ef2ddffdfd7381e613ed5310bd Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期四, 14 三月 2024 15:11:22 +0800
Subject: [PATCH] update com define

---
 runtime/onnxruntime/src/offline-stream.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/runtime/onnxruntime/src/offline-stream.cpp b/runtime/onnxruntime/src/offline-stream.cpp
index 8941a05..abe13ae 100644
--- a/runtime/onnxruntime/src/offline-stream.cpp
+++ b/runtime/onnxruntime/src/offline-stream.cpp
@@ -36,7 +36,9 @@
         string seg_dict_path;
     
         if(use_gpu){
+            #ifdef USE_GPU
             asr_handle = make_unique<ParaformerTorch>();
+            #endif
         }else{
             asr_handle = make_unique<Paraformer>();
         }

--
Gitblit v1.9.1