Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lovemefan committed Nov 23, 2024
1 parent 0cd0747 commit cc5ceda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sense-voice/csrc/sense-voice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ static std::vector<ggml_backend_t> 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) {
Expand Down

0 comments on commit cc5ceda

Please sign in to comment.