whisper : reset mel time when resetting timings (#1452)

Co-authored-by: Ben Nortier <ben@bjnortier.com>
pull/1456/head
Ben Nortier 2023-11-08 15:52:23 +02:00 committed by GitHub
parent d03c60dd7f
commit baeb733691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View 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;