coreml : use the correct n_mel value (#1458)

This commit is contained in:
Xiao-Yong Jin
2023-11-08 14:01:41 -06:00
committed by GitHub
parent baeb733691
commit 0de8582f65
5 changed files with 12 additions and 6 deletions

View File

@ -3,6 +3,8 @@
// Code is derived from the work of Github user @wangchou
// ref: https://github.com/wangchou/callCoreMLFromCpp
#include <stdint.h>
#if __cplusplus
extern "C" {
#endif
@ -14,6 +16,8 @@ void whisper_coreml_free(struct whisper_coreml_context * ctx);
void whisper_coreml_encode(
const whisper_coreml_context * ctx,
int64_t n_ctx,
int64_t n_mel,
float * mel,
float * out);