Skip to content

Commit

Permalink
whisper : backend registry init before model load
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Nov 1, 2024
1 parent c65d0fd commit 0377596
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/whisper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0377596

Please sign in to comment.