]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
build : update CBLAS flags + fix unused var warning (whisper/0)
authorGeorgi Gerganov <redacted>
Mon, 19 Feb 2024 12:44:46 +0000 (14:44 +0200)
committerGeorgi Gerganov <redacted>
Mon, 19 Feb 2024 13:55:13 +0000 (15:55 +0200)
examples/whisper/whisper.cpp

index 536adc3396dc469941e940b23caeb8b98523a1d9..38c827d2efae801c7174021d9c6045e311c2860c 100644 (file)
@@ -1616,8 +1616,7 @@ static bool whisper_encode_external(const whisper_state & wstate) {
 
 static struct ggml_cgraph * whisper_build_graph_conv(
         whisper_context & wctx,
-          whisper_state & wstate,
-              const int   mel_offset) {
+          whisper_state & wstate) {
     const auto & model   = wctx.model;
     const auto & hparams = model.hparams;
 
@@ -2001,7 +2000,7 @@ static bool whisper_encode_internal(
     {
         auto & alloc = wstate.alloc_conv.alloc;
 
-        ggml_cgraph * gf = whisper_build_graph_conv(wctx, wstate, mel_offset);
+        ggml_cgraph * gf = whisper_build_graph_conv(wctx, wstate);
 
         if (!ggml_gallocr_alloc_graph(alloc, gf)) {
             // should never happen as we pre-allocate the memory
@@ -3024,7 +3023,7 @@ struct whisper_state * whisper_init_state(whisper_context * ctx) {
     {
         bool ok = whisper_allocr_graph_init(state->alloc_conv, ctx->backend,
                 [&]() {
-                    return whisper_build_graph_conv(*ctx, *state, 0);
+                    return whisper_build_graph_conv(*ctx, *state);
                 });
 
         if (!ok) {