From cc5cedab828bd00ad8a4d5f83c68d54081ffdba6 Mon Sep 17 00:00:00 2001 From: lovemefan Date: Sat, 23 Nov 2024 16:24:44 +0800 Subject: [PATCH] bugfix --- sense-voice/csrc/sense-voice.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sense-voice/csrc/sense-voice.cc b/sense-voice/csrc/sense-voice.cc index eb15543..9a33483 100644 --- a/sense-voice/csrc/sense-voice.cc +++ b/sense-voice/csrc/sense-voice.cc @@ -399,7 +399,7 @@ static std::vector sense_voice_backend_init( for (size_t i = 0; i < ggml_backend_dev_count(); ++i) { ggml_backend_dev_t dev = ggml_backend_dev_get(i); - if (ggml_backend_dev_type(dev) == GGML_BACKEND_DEVICE_TYPE_ACCEL or ggml_backend_dev_type(dev) == GGML_BACKEND_DEVICE_TYPE_CPU) { + if (ggml_backend_dev_type(dev) == GGML_BACKEND_DEVICE_TYPE_ACCEL || ggml_backend_dev_type(dev) == GGML_BACKEND_DEVICE_TYPE_CPU) { SENSE_VOICE_LOG_INFO("%s: using %s backend\n", __func__, ggml_backend_dev_name(dev)); ggml_backend_t backend = ggml_backend_dev_init(dev, nullptr); if (!backend) {