Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

whisper : replace tensor->n_dims with ggml_n_dims(tensor) #1694

Merged
merged 1 commit into from
Dec 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions openvino/whisper-openvino-encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ int whisper_openvino_encode(
return 0;
}

if (mel->n_dims != 2) {
if (ggml_n_dims(mel) != 2) {
fprintf(stderr, "%s: Error! mel ggml_tensor expected to have n_dims=2, but it has n_dims=%d\n",
__func__, mel->n_dims);
__func__, ggml_n_dims(mel));
return 0;
}

if (out->n_dims != 2) {
if (ggml_n_dims(out) != 2) {
fprintf(stderr, "%s: Error! out ggml_tensor expected to have n_dims=2, but it has n_dims=%d\n",
__func__, out->n_dims);
__func__, ggml_n_dims(out));
return 0;
}

Expand Down Expand Up @@ -105,4 +105,4 @@ int whisper_openvino_encode(
}

return 1;
}
}
Loading