]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
whisper : fix compute helper return (#750)
authorGeorgi Gerganov <redacted>
Tue, 5 Mar 2024 14:05:23 +0000 (16:05 +0200)
committerGeorgi Gerganov <redacted>
Tue, 5 Mar 2024 14:05:23 +0000 (16:05 +0200)
examples/whisper/whisper.cpp

index 2e0a6e2e044c7cd75706dd6667261e4e21cdd78b..3ac5f32925b9e61a46403600f7c03379521bf510 100644 (file)
@@ -187,7 +187,7 @@ static bool ggml_graph_compute_helper(
         ggml_backend_metal_set_n_cb(backend, n_threads);
     }
 #endif
-    return ggml_backend_graph_compute(backend, graph);
+    return ggml_backend_graph_compute(backend, graph) == GGML_STATUS_SUCCESS;
 }
 
 // faster matrix multiplications for tensors that do not have dimension 0 divisible by "pad"