From 0377596b77a3602e36430320cbe45f8c305ef04a Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Thu, 31 Oct 2024 22:53:46 +0200 Subject: [PATCH] whisper : backend registry init before model load --- src/whisper.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/whisper.cpp b/src/whisper.cpp index 6e62d103b17..08f1ef01752 100644 --- a/src/whisper.cpp +++ b/src/whisper.cpp @@ -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;