mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-06-24 03:31:22 +02:00
bench : fix n_mels
This commit is contained in:
parent
8fb0a1cd1c
commit
a0c0d08d0f
@ -23,9 +23,9 @@ void bench_main(size_t index) {
|
|||||||
|
|
||||||
fprintf(stderr, "%s: running benchmark with %d threads - please wait...\n", __func__, n_threads);
|
fprintf(stderr, "%s: running benchmark with %d threads - please wait...\n", __func__, n_threads);
|
||||||
|
|
||||||
const int n_mel = 80;
|
const int n_mels = whisper_model_n_mels(ctx);
|
||||||
|
|
||||||
if (int ret = whisper_set_mel(ctx, nullptr, 0, n_mel)) {
|
if (int ret = whisper_set_mel(ctx, nullptr, 0, n_mels)) {
|
||||||
fprintf(stderr, "error: failed to set mel: %d\n", ret);
|
fprintf(stderr, "error: failed to set mel: %d\n", ret);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -73,9 +73,9 @@ int whisper_bench_full(const whisper_params & params) {
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
const int n_mel = 80;
|
const int n_mels = whisper_model_n_mels(ctx);
|
||||||
|
|
||||||
if (int ret = whisper_set_mel(ctx, nullptr, 0, n_mel)) {
|
if (int ret = whisper_set_mel(ctx, nullptr, 0, n_mels)) {
|
||||||
fprintf(stderr, "error: failed to set mel: %d\n", ret);
|
fprintf(stderr, "error: failed to set mel: %d\n", ret);
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user