From baeb733691fa0c5a7e1b27a44768fa833f59be5f Mon Sep 17 00:00:00 2001 From: Ben Nortier Date: Wed, 8 Nov 2023 15:52:23 +0200 Subject: [PATCH] whisper : reset mel time when resetting timings (#1452) Co-authored-by: Ben Nortier --- whisper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/whisper.cpp b/whisper.cpp index b6300d5f..9a1eb215 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -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;