From d43d0853dcf3a1db04302c7b527e92ace3ccfb55 Mon Sep 17 00:00:00 2001
From: AldarisX <aldaris@axnet.icu>
Date: 星期一, 07 四月 2025 21:20:31 +0800
Subject: [PATCH] add intel xpu support (#2468)
---
funasr/frontends/fused.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/funasr/frontends/fused.py b/funasr/frontends/fused.py
index 0fa7639..0935910 100644
--- a/funasr/frontends/fused.py
+++ b/funasr/frontends/fused.py
@@ -78,6 +78,8 @@
self.factors = [frontend.hop_length // self.gcd for frontend in self.frontends]
if torch.cuda.is_available():
dev = "cuda"
+ elif torch.xpu.is_available():
+ dev = "xpu"
else:
dev = "cpu"
if self.align_method == "linear_projection":
--
Gitblit v1.9.1