Skip to content

Commit

Permalink
whisper : reset mel time when resetting timings (#1452)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Nortier <[email protected]>
  • Loading branch information
bjnortier and bjnortier authored Nov 8, 2023
1 parent d03c60d commit baeb733
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions whisper.cpp
Original file line number Diff line number Diff line change
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 baeb733

Please sign in to comment.