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

pull/1703/head
bobqianic 2023-12-29 09:38:35 +00:00 committed by GitHub
parent e77b27c331
commit f5f485f899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -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;
}
@ -105,4 +105,4 @@ int whisper_openvino_encode(
}
return 1;
}
}