]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
whisper : minor compile warning
authorGeorgi Gerganov <redacted>
Tue, 29 Oct 2024 17:27:52 +0000 (19:27 +0200)
committerGeorgi Gerganov <redacted>
Tue, 29 Oct 2024 17:30:26 +0000 (19:30 +0200)
src/whisper.cpp

index 8238554a63c7beacb9c4163b9c8ba6a9dc1b9e35..37214f0b507dd30e436a82fe7ba1449494025faa 100644 (file)
@@ -6252,7 +6252,7 @@ int whisper_full_with_state(
             // FIXME: will timestamp offsets be correct?
             // [EXPERIMENTAL] Token-level timestamps with DTW
             {
-                const auto n_segments = state->result_all.size() - n_segments_before;
+                const int n_segments = state->result_all.size() - n_segments_before;
                 if (ctx->params.dtw_token_timestamps && n_segments) {
                     const int n_frames = std::min(std::min(WHISPER_CHUNK_SIZE * 100, seek_delta), seek_end - seek);
                     whisper_exp_compute_token_level_timestamps_dtw(