From c64d4b25e2d60981953dc4b2e984cb90410d5c7b Mon Sep 17 00:00:00 2001
From: hnluo <haoneng.lhn@alibaba-inc.com>
Date: 星期五, 28 七月 2023 17:43:47 +0800
Subject: [PATCH] Merge pull request #787 from alibaba-damo-academy/dev_lhn

---
 funasr/bin/asr_inference_launch.py |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/funasr/bin/asr_inference_launch.py b/funasr/bin/asr_inference_launch.py
index fd47047..0fd5abd 100644
--- a/funasr/bin/asr_inference_launch.py
+++ b/funasr/bin/asr_inference_launch.py
@@ -260,8 +260,6 @@
         hotword_list_or_file = None
         clas_scale = 1.0
 
-    if kwargs.get("device", None) == "cpu":
-        ngpu = 0
     if ngpu >= 1 and torch.cuda.is_available():
         device = "cuda"
     else:

--
Gitblit v1.9.1