whisper : add OpenVINO init with state (#2464)

* Fixed OpenVino init on state

* Removed an empty line

* Fixed typo

* Replaced tabs with spaces

---------

Co-authored-by: Sandro Hanea <sandrohanea@users.noreply.github.com>
This commit is contained in:
Sandro Hanea
2024-10-08 20:08:00 +03:00
committed by GitHub
co-authored by Sandro Hanea
parent ebca09a3d1
commit fdbfb460ed
2 changed files with 20 additions and 3 deletions
+7
View File
@@ -238,6 +238,13 @@ extern "C" {
// GPU, by caching compiled 'blobs' there.
// Set to nullptr if not used.
// Returns 0 on success. If OpenVINO is not enabled in build, this simply returns 1.
WHISPER_API int whisper_ctx_init_openvino_encoder_with_state(
struct whisper_context * ctx,
struct whisper_state * state,
const char * model_path,
const char * device,
const char * cache_dir);
WHISPER_API int whisper_ctx_init_openvino_encoder(
struct whisper_context * ctx,
const char * model_path,