From: Georgi Gerganov Date: Thu, 31 Oct 2024 20:53:46 +0000 (+0200) Subject: whisper : backend registry init before model load X-Git-Tag: upstream/1.7.4~280 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=0377596b77a3602e36430320cbe45f8c305ef04a;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp whisper : backend registry init before model load --- diff --git a/src/whisper.cpp b/src/whisper.cpp index 6e62d103..08f1ef01 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;