Skip to content

Commit

Permalink
whisper : reset mel time when resetting timings (ggerganov#1452)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Nortier <ben@bjnortier.com>
  • Loading branch information
bjnortier and Ben Nortier committed Nov 8, 2023
1 parent b26556c commit 4d03aa4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions whisper.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 4d03aa4

Please sign in to comment.