ggerganov commited on
Commit
606cb52
·
1 Parent(s): 8177527

whisper : backend registry init before model load

Browse files
Files changed (1) hide show
  1. src/whisper.cpp +3 -0
src/whisper.cpp CHANGED
@@ -3667,6 +3667,9 @@ struct whisper_context * whisper_init_with_params_no_state(struct whisper_model_
3667
  WHISPER_LOG_INFO("%s: gpu_device = %d\n", __func__, params.gpu_device);
3668
  WHISPER_LOG_INFO("%s: dtw = %d\n", __func__, params.dtw_token_timestamps);
3669
 
 
 
 
3670
  whisper_context * ctx = new whisper_context;
3671
  ctx->params = params;
3672
 
 
3667
  WHISPER_LOG_INFO("%s: gpu_device = %d\n", __func__, params.gpu_device);
3668
  WHISPER_LOG_INFO("%s: dtw = %d\n", __func__, params.dtw_token_timestamps);
3669
 
3670
+ // TODO: temporary call to force backend registry initialization
3671
+ WHISPER_LOG_INFO("%s: backends = %zu\n", __func__, ggml_backend_reg_count());
3672
+
3673
  whisper_context * ctx = new whisper_context;
3674
  ctx->params = params;
3675