]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
whisper.android : return output from benchmarks (#1785)
authorNeuman Vong <redacted>
Fri, 19 Jan 2024 14:17:38 +0000 (01:17 +1100)
committerGitHub <redacted>
Fri, 19 Jan 2024 14:17:38 +0000 (16:17 +0200)
commitd6b9be21d76b91a96bb987063b25e5b532140253
tree6fde842b8b2358648e9d3f0a335e43866bfd695b
parentc0329acde8a7d2b03add7e7c8f5e5341b48746ff
whisper.android : return output from benchmarks (#1785)

Benchmarks are failing because JNI expects a jstring and the benchmarks
are missing a return statement (i.e., returning null). The functions
actually build a jstring but don't return it, so this seems to have been
an oversight.

This patch returns the jstring and now the benchmarks run successfully.

Fixes #1783.
examples/whisper.android/lib/src/main/jni/whisper/jni.c