Skip to content

Commit bc763c1

Browse files
committed
whisper : backend registry init before model load
1 parent d17cdb3 commit bc763c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/whisper.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3667,6 +3667,9 @@ struct whisper_context * whisper_init_with_params_no_state(struct whisper_model_
36673667
WHISPER_LOG_INFO("%s: gpu_device = %d\n", __func__, params.gpu_device);
36683668
WHISPER_LOG_INFO("%s: dtw = %d\n", __func__, params.dtw_token_timestamps);
36693669

3670+
// TODO: temporary call to force backend registry initialization
3671+
WHISPER_LOG_INFO("%s: backends = %zu\n", __func__, ggml_backend_reg_count());
3672+
36703673
whisper_context * ctx = new whisper_context;
36713674
ctx->params = params;
36723675

0 commit comments

Comments
 (0)