]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
whisper : backend registry init before model load
authorGeorgi Gerganov <redacted>
Thu, 31 Oct 2024 20:53:46 +0000 (22:53 +0200)
committerGeorgi Gerganov <redacted>
Fri, 1 Nov 2024 08:19:05 +0000 (10:19 +0200)
src/whisper.cpp

index 6e62d103b17214228a040384350b47eef783ecb1..08f1ef01752fda693a1c8c6ab7c14b605e92d3ac 100644 (file)
@@ -3667,6 +3667,9 @@ struct whisper_context * whisper_init_with_params_no_state(struct whisper_model_
     WHISPER_LOG_INFO("%s: gpu_device = %d\n", __func__, params.gpu_device);
     WHISPER_LOG_INFO("%s: dtw        = %d\n", __func__, params.dtw_token_timestamps);
 
+    // TODO: temporary call to force backend registry initialization
+    WHISPER_LOG_INFO("%s: backends   = %zu\n", __func__, ggml_backend_reg_count());
+
     whisper_context * ctx = new whisper_context;
     ctx->params = params;