Spaces:
Running
Running
whisper : reset mel time when resetting timings (#1452)
Browse files- whisper.cpp +1 -0
whisper.cpp
CHANGED
|
@@ -3716,6 +3716,7 @@ void whisper_print_timings(struct whisper_context * ctx) {
|
|
| 3716 |
void whisper_reset_timings(struct whisper_context * ctx) {
|
| 3717 |
ctx->t_start_us = ggml_time_us();
|
| 3718 |
if (ctx->state != nullptr) {
|
|
|
|
| 3719 |
ctx->state->t_sample_us = 0;
|
| 3720 |
ctx->state->t_encode_us = 0;
|
| 3721 |
ctx->state->t_decode_us = 0;
|
|
|
|
| 3716 |
void whisper_reset_timings(struct whisper_context * ctx) {
|
| 3717 |
ctx->t_start_us = ggml_time_us();
|
| 3718 |
if (ctx->state != nullptr) {
|
| 3719 |
+
ctx->state->t_mel_us = 0;
|
| 3720 |
ctx->state->t_sample_us = 0;
|
| 3721 |
ctx->state->t_encode_us = 0;
|
| 3722 |
ctx->state->t_decode_us = 0;
|