bench : fix build + fix go bindings

This commit is contained in:
Georgi Gerganov
2023-11-07 13:20:02 +02:00
parent 185d3fd6d9
commit 8fb0a1cd1c
3 changed files with 6 additions and 3 deletions

View File

@@ -23,7 +23,9 @@ void bench_main(size_t index) {
fprintf(stderr, "%s: running benchmark with %d threads - please wait...\n", __func__, n_threads);
if (int ret = whisper_set_mel(ctx, nullptr, 0, WHISPER_N_MEL)) {
const int n_mel = 80;
if (int ret = whisper_set_mel(ctx, nullptr, 0, n_mel)) {
fprintf(stderr, "error: failed to set mel: %d\n", ret);
return;
}