From: Georgi Gerganov Date: Tue, 5 Mar 2024 14:05:23 +0000 (+0200) Subject: whisper : fix compute helper return (#750) X-Git-Tag: upstream/0.0.1642~886 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f51f7e6de5b9e520a2216f43904674f2b17d27e6;p=pkg%2Fggml%2Fsources%2Fggml whisper : fix compute helper return (#750) --- diff --git a/examples/whisper/whisper.cpp b/examples/whisper/whisper.cpp index 2e0a6e2e..3ac5f329 100644 --- a/examples/whisper/whisper.cpp +++ b/examples/whisper/whisper.cpp @@ -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"