]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
whisper : reset mel time when resetting timings (#1452)
authorBen Nortier <redacted>
Wed, 8 Nov 2023 13:52:23 +0000 (15:52 +0200)
committerGitHub <redacted>
Wed, 8 Nov 2023 13:52:23 +0000 (15:52 +0200)
Co-authored-by: Ben Nortier <redacted>
whisper.cpp

index b6300d5f03c04d5b9de2d87386a1d2028ba55986..9a1eb2152fed45e0a784e595c38cb299b7b5450e 100644 (file)
@@ -3716,6 +3716,7 @@ void whisper_print_timings(struct whisper_context * ctx) {
 void whisper_reset_timings(struct whisper_context * ctx) {
     ctx->t_start_us = ggml_time_us();
     if (ctx->state != nullptr) {
+        ctx->state->t_mel_us = 0;
         ctx->state->t_sample_us = 0;
         ctx->state->t_encode_us = 0;
         ctx->state->t_decode_us = 0;