mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-11-07 08:34:37 +01:00
whisper : free whisper_mel instances (#2220)
This commit is contained in:
parent
87acd6d629
commit
c2bdb960cd
@ -3781,6 +3781,7 @@ void whisper_free_params(struct whisper_full_params * params) {
|
||||
int whisper_pcm_to_mel_with_state(struct whisper_context * /*ctx*/, struct whisper_state * state, const float * samples, int n_samples, int n_threads) {
|
||||
const int64_t t_start_us = ggml_time_us();
|
||||
|
||||
whisper_mel_free(state->mel);
|
||||
state->mel = state->mel_calc->calculate({samples, n_samples}, n_threads);
|
||||
|
||||
state->t_mel_us += ggml_time_us() - t_start_us;
|
||||
|
Loading…
Reference in New Issue
Block a user